Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rails_helper'
- RSpec.describe 'signup page', type: :request do
- it 'allows user with valid credentials to signup' do
- user = FactoryGirl.build(:user)
- visit '/signup'
- fill_in 'user_name', with: user.name
- fill_in 'user_email', with: user.email
- fill_in 'user_password', with: 'swordfish'
- fill_in 'user_password_confirmation', with: 'swordfish'
- click_button 'Sign Up'
- expect(page).to have_content user.name
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement