search for: find_by_followed_id

Displaying 1 result from an estimated 1 matches for "find_by_followed_id".

2012 Feb 18
0
Rails NameError : uninitialized constant RelationshipsController
...ip, :count).by(1) end end describe "DELETE ''destroy''" do before(:each) do @user = test_sign_in(Factory(:user)) @followed = Factory(:user, :email => Factory.next(:email)) @user.follow!(@followed) @relationship = @user.relationships.find_by_followed_id(@followed) end it "should destroy a relationship" do lambda do delete :destroy, :id => @relationship response.should be_redirect end.should change(Relationship, :count).by(-1) end it "should destroy a relationship using Ajax" do...