Sha256: 1de830861b992a4098c6c2ac04eb1e0732328af0b44347c140011895dd2fdfc5
Contents?: true
Size: 644 Bytes
Versions: 10
Compression:
Stored size: 644 Bytes
Contents
require 'rails_helper' RSpec.describe 'Nyauth::Registrations' do let(:user) { build(:user) } feature 'register' do background { visit nyauth.new_registration_path } scenario 'create user' do fill_in('user_email', with: user.email) 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') expect(page).to have_content("can't") end end end
Version data entries
10 entries across 10 versions & 1 rubygems