I am working on a hartl rails tutorial
I am at the end of section 8.3, the application works correctly, but I get an rspec error
1) User pages signup with valid information after saving the user
Failure/Error: it { should have_link('Sign out') }
expected link "Sign out" to return something
the user_pages_spec.rb part involved in this is
it "should create a user" do
expect { click_button submit }.to change(User, :count).by(1)
end
describe "after saving the user" do
it { should have_link('Sign out') }
end
I lost a little how to fix it. There are other posts similar to this, but alas, I cannot get their solutions to work in my case. Thank you
source
share