spec/featrues/nyauth/registrations_spec.rb in nyauth-0.0.2 vs spec/featrues/nyauth/registrations_spec.rb in nyauth-0.0.3
- old
+ new
@@ -11,9 +11,10 @@
fill_in('user_password', with: user.password)
fill_in('user_password_confirmation', with: user.password)
click_button('Sign up')
expect(page).to have_content('registration success')
+ expect(User.last.email).to eq user.email
end
scenario "can't create user" do
click_button('Sign up')