Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rspec failures on devise #247

Open
aaronmallen opened this issue Apr 20, 2016 · 0 comments
Open

Rspec failures on devise #247

aaronmallen opened this issue Apr 20, 2016 · 0 comments

Comments

@aaronmallen
Copy link

config options:

option  Build a starter application?
choose  Enter your selection: [none]
option  Get on the mailing list for Rails Composer news?
choose  Enter your selection: [none]
option  Web server for development?
choose  Enter your selection: [thin]
option  Web server for production?
choose  Enter your selection: [puma]
option  Database used in development?
choose  Enter your selection: [postgresql]
option  Template engine?
choose  Enter your selection: [slim]
option  Test framework?
choose  Enter your selection: [rspec]
option  Continuous testing?
choose  Enter your selection: [guard]
option  Front-end framework?
choose  Enter your selection: [bootstrap3]
option  Add support for sending email?
choose  Enter your selection: [none]
option  Authentication?
choose  Enter your selection: [devise]
option  Devise modules?
choose  Enter your selection: [default]
option  OmniAuth provider?
choose  Enter your selection: []
option  Authorization?
choose  Enter your selection: [roles]
option  Use a form builder gem?
choose  Enter your selection: [none]
option  Add pages?
choose  Enter your selection: [home]
option  Set a locale?
choose  Enter your selection: [none]
option  Install page-view analytics?
choose  Enter your selection: [none]
option  Add a deployment mechanism?
choose  Enter your selection: [none]
option  Set a robots.txt file to ban spiders?
choose  Enter your selection: [true]
option  Create a GitHub repository? (y/n)
choose  Enter your selection: []
option  Add gem and file for environment variables?
choose  Enter your selection: [figaro]
option  Reduce assets logger noise during development?
choose  Enter your selection: [true]
option  Improve error reporting with 'better_errors' during development?
choose  Enter your selection: [true]
option  Use 'pry' as console replacement during development and test?
choose  Enter your selection: [true]
option  Use or create a project-specific rvm gemset?
choose  Enter your selection: []

rspec output:

Sign in
  user cannot sign in if not registered
  user can sign in with valid credentials
  user cannot sign in with wrong email
  user cannot sign in with wrong password

Sign out
  user signs out successfully (FAILED - 1)

User delete
  user can delete own account (PENDING: skip a slow test)

User edit
  user changes email address
  user cannot cannot edit another user's profile

Home page
  visit the home page

Navigation links
  view navigation links (FAILED - 2)

Sign Up
  visitor can sign up with valid email address and password
  visitor cannot sign up with invalid email address
  visitor cannot sign up without password
  visitor cannot sign up with a short password (FAILED - 3)
  visitor cannot sign up without password confirmation
  visitor cannot sign up with mismatched password and confirmation

User
  should respond to #email
  #email returns a string

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) User delete user can delete own account
     # skip a slow test
     # ./spec/features/users/user_delete_spec.rb:18


Failures:

  1) Sign out user signs out successfully
     Failure/Error: click_link 'Sign out'

     Capybara::ElementNotFound:
       Unable to find link "Sign out"
     # /Users/<USERNAME-REDACTED>/.rvm/gems/ruby-2.3.0@<PROJECTNAME-REDACTED>/gems/capybara-2.7.0/lib/capybara/node/finders.rb:44:in `block in find'
     # /Users/<USERNAME-REDACTED>/.rvm/gems/ruby-2.3.0@<PROJECTNAME-REDACTED>/gems/capybara-2.7.0/lib/capybara/node/base.rb:85:in `synchronize'
     # /Users/<USERNAME-REDACTED>/.rvm/gems/ruby-2.3.0@<PROJECTNAME-REDACTED>/gems/capybara-2.7.0/lib/capybara/node/finders.rb:33:in `find'
     # /Users/<USERNAME-REDACTED>/.rvm/gems/ruby-2.3.0@<PROJECTNAME-REDACTED>/gems/capybara-2.7.0/lib/capybara/node/actions.rb:27:in `click_link'
     # /Users/<USERNAME-REDACTED>/.rvm/gems/ruby-2.3.0@<PROJECTNAME-REDACTED>/gems/capybara-2.7.0/lib/capybara/session.rb:699:in `block (2 levels) in <class:Session>'
     # /Users/<USERNAME-REDACTED>/.rvm/gems/ruby-2.3.0@<PROJECTNAME-REDACTED>/gems/capybara-2.7.0/lib/capybara/dsl.rb:52:in `block (2 levels) in <module:DSL>'
     # ./spec/features/users/sign_out_spec.rb:15:in `block (2 levels) in <top (required)>'

  2) Navigation links view navigation links
     Failure/Error: expect(page).to have_content 'Sign in'
       expected to find text "Sign in" in "Toggle navigationHomeWelcome"
     # ./spec/features/visitors/navigation_spec.rb:14:in `block (2 levels) in <top (required)>'

  3) Sign Up visitor cannot sign up with a short password
     Failure/Error: expect(page).to have_content "Password is too short"
       expected to find text "Password is too short" in "Toggle navigationHome×Welcome! You have signed up successfully.Welcome"
     # ./spec/features/visitors/sign_up_spec.rb:41:in `block (2 levels) in <top (required)>'

Finished in 1.05 seconds (files took 2.54 seconds to load)
18 examples, 3 failures, 1 pending

Failed examples:

rspec ./spec/features/users/sign_out_spec.rb:11 # Sign out user signs out successfully
rspec ./spec/features/visitors/navigation_spec.rb:11 # Navigation links view navigation links
rspec ./spec/features/visitors/sign_up_spec.rb:39 # Sign Up visitor cannot sign up with a short password

/Users/<USERNAME-REDACTED>/.rvm/rubies/ruby-2.3.0/bin/ruby -I/Users/<USERNAME-REDACTED>/.rvm/gems/ruby-2.3.0@<PROJECTNAME-REDACTED>/gems/rspec-core-3.4.4/lib:/Users/<USERNAME-REDACTED>/.rvm/gems/ruby-2.3.0@<PROJECTNAME-REDACTED>/gems/rspec-support-3.4.1/lib /Users/<USERNAME-REDACTED>/.rvm/gems/ruby-2.3.0@<PROJECTNAME-REDACTED>/gems/rspec-core-3.4.4/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant