Skip to content

Instantly share code, notes, and snippets.

@awead
Created June 4, 2015 15:11
Show Gist options
  • Save awead/d87e86104d54efa6b8fd to your computer and use it in GitHub Desktop.
Save awead/d87e86104d54efa6b8fd to your computer and use it in GitHub Desktop.
Feature failures
~/Projects/Github/psu-stewardship/archivesphere (poltergeist *%)$ bundle exec rspec spec/features/
/Users/awead/.gem/ruby/2.1.5/gems/rubyzip-0.9.9/lib/zip/constants.rb:2: warning: already initialized constant Zip::VERSION
DEPRECATION WARNING: You didn't set config.secret_key_base. Read the upgrade documentation to learn more about this new config option. (called from service at /Users/awead/.rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138)
FF...F.F
Failures:
1) Creating a new accession should be successful
Failure/Error: click_on "Create Collection"
Capybara::Poltergeist::JavascriptError:
One or more errors were raised in the Javascript code on the page. If you don't care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).
TypeError: 'undefined' is not an object (evaluating '$(".collection-selector")[0].value')
TypeError: 'undefined' is not an object (evaluating '$(".collection-selector")[0].value')
at http://127.0.0.1:50580/assets/application.js:25640
at http://127.0.0.1:50580/assets/application.js:5096
at http://127.0.0.1:50580/assets/application.js:4767
# ./spec/features/create_new_accession_spec.rb:18:in `block (2 levels) in <top (required)>'
2) Deleting a file from an accession should be successful
Failure/Error: create_base_collection_accession
Capybara::Poltergeist::JavascriptError:
One or more errors were raised in the Javascript code on the page. If you don't care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).
TypeError: 'undefined' is not an object (evaluating '$(".collection-selector")[0].value')
TypeError: 'undefined' is not an object (evaluating '$(".collection-selector")[0].value')
at http://127.0.0.1:50580/assets/application.js:25640
at http://127.0.0.1:50580/assets/application.js:5096
at http://127.0.0.1:50580/assets/application.js:4767
# ./spec/features/common.rb:5:in `create_base_collection_accession'
# ./spec/features/delete_file_spec.rb:18:in `block (2 levels) in <top (required)>'
3) restricted routes test restricted routes should not allow non logged user
Failure/Error: page.status_code.should == 401
expected: 401
got: nil (using ==)
# ./spec/features/restricted_routes_spec.rb:27:in `block (4 levels) in <top (required)>'
# ./spec/features/restricted_routes_spec.rb:25:in `each'
# ./spec/features/restricted_routes_spec.rb:25:in `block (3 levels) in <top (required)>'
4) Creating a new accession should be successful
Failure/Error: create_base_collection_accession
Capybara::Poltergeist::JavascriptError:
One or more errors were raised in the Javascript code on the page. If you don't care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).
TypeError: 'undefined' is not an object (evaluating '$(".collection-selector")[0].value')
TypeError: 'undefined' is not an object (evaluating '$(".collection-selector")[0].value')
at http://127.0.0.1:50580/assets/application.js:25640
at http://127.0.0.1:50580/assets/application.js:5096
at http://127.0.0.1:50580/assets/application.js:4767
# ./spec/features/common.rb:5:in `create_base_collection_accession'
# ./spec/features/upload_new_file_spec.rb:18:in `block (2 levels) in <top (required)>'
Finished in 19.9 seconds
8 examples, 4 failures
Failed examples:
rspec ./spec/features/create_new_accession_spec.rb:14 # Creating a new accession should be successful
rspec ./spec/features/delete_file_spec.rb:15 # Deleting a file from an accession should be successful
rspec ./spec/features/restricted_routes_spec.rb:24 # restricted routes test restricted routes should not allow non logged user
rspec ./spec/features/upload_new_file_spec.rb:15 # Creating a new accession should be successful
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment