search for: test_sign_in

Displaying 2 results from an estimated 2 matches for "test_sign_in".

2012 Feb 18
0
Rails NameError : uninitialized constant RelationshipsController
...response.should redirect_to(signin_path) end it "should require signin for destroy" do delete :destroy, :id => 1 response.should redirect_to(signin_path) end end describe "POST ''create''" do before(:each) do @user = test_sign_in(Factory(:user)) @followed = Factory(:user, :email => Factory.next(:email)) end it "should create a relationship" do lambda do post :create, :relationship => { :followed_id => @followed } response.should be_redirect end.should change(Rela...
2013 Oct 08
1
Trouble with rspec and FactoryGirl Sequence
...e relevant section of my users_controller_spec.rb: require ''spec_helper'' describe UsersController do . . describe "GET ''index''" do . . describe "for signed-in users" do before(:each) do @user = test_sign_in(FactoryGirl.create(:user)) second = FactoryGirl.create(:user, :email => "another-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org") third = FactoryGirl.create(:user, :email => "another-hcDgGtZH8xPR7s880joybQ@public.gmane.org&quot...