Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@domagude
Created October 20, 2017 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domagude/47afbae04356f6c956803f71bc882b45 to your computer and use it in GitHub Desktop.
Save domagude/47afbae04356f6c956803f71bc882b45 to your computer and use it in GitHub Desktop.
require "rails_helper"
RSpec.feature "Sign up", :type => :feature do
let(:user) { build(:user) }
scenario 'user navigates to sign up page and successfully signs up', js: true do
visit root_path
find('nav a', text: 'Signup').click
fill_in 'user[name]', with: user.name
fill_in 'user[email]', with: user.email
fill_in 'user[password]', with: user.password
fill_in 'user[password_confirmation]', with: user.password_confirmation
find('.sign-up-button').click
expect(page).to have_selector('#user-settings')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment