Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'spec_helper'
- describe "Documents" do
- before(:each) do
- @user = Factory.create(:user)
- end
- describe "GET /documents" do
- it "Needs authentication" do
- get documents_path
- response.status.should be(302)
- end
- it "Needs authentication" do
- get new_user_session_path
- post new_user_session_path, :email => @user.email, :password => @user.password
- get documents_path
- response.status.should be(302)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement