spec/featrues/nyauth/registrations_spec.rb in nyauth-0.4.0 vs spec/featrues/nyauth/registrations_spec.rb in nyauth-0.5.0
- old
+ new
@@ -8,17 +8,17 @@
scenario 'create user' do
fill_in('registration_email', with: user.email)
fill_in('registration_password', with: user.password)
fill_in('registration_password_confirmation', with: user.password)
- click_button('Sign up')
+ click_button(I18n.t('nav.nyauth.registrations.new'))
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')
+ click_button(I18n.t('nav.nyauth.registrations.new'))
expect(page).to have_content("can't")
end
end
end