Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it "should create a user" do
- expect { click_button submit }.to change(User, :count).by(1)
- end
- describe "after saving the user" do
- before { click_button submit }
- it { should have_link('Sign out') }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement