Skip to content

Instantly share code, notes, and snippets.

@atz
Created September 19, 2014 22:34
Show Gist options
  • Save atz/6d83f2e36e8ebca75a47 to your computer and use it in GitHub Desktop.
Save atz/6d83f2e36e8ebca75a47 to your computer and use it in GitHub Desktop.
rspec output (partial)
Failures:
1) ApoController create should hit the registration service to register an apo and a collection
Failure/Error: post 'register', "title"=>"New APO Title", "agreement"=>"druid:xf765cv5573", "desc_md"=>"MODS", "metadata_source"=>"DOR", "managers"=>"dlss:developers dlss:dpg-staff", "viewers"=>"sdr:viewer-role , dlss:forensics-staff", "collection_radio"=>"","collection_title"=>'col title', "collection_abstract"=>"", "default_object_rights"=>"World", "use"=>"", "copyright"=>"", "cc_license"=>"", "workflow"=>"digitizationWF", "register"=>""
ActiveFedora::ObjectNotFoundError:
Unable to find 'druid:xf765cv5573' in fedora. See logger for details.
# ./config/initializers/dor.rb:5:in `agreement='
# ./app/controllers/apo_controller.rb:62:in `register'
# ./spec/controllers/apo_controller_spec.rb:28:in `block (3 levels) in <top (required)>'
2) ApoController create should set apo workflows to priority 70
Failure/Error: post 'register', "title"=>"New APO Title", "agreement"=>"druid:xf765cv5573", "desc_md"=>"MODS", "metadata_source"=>"DOR", "managers"=>"dlss:developers dlss:dpg-staff", "viewers"=>"sdr:viewer-role , dlss:forensics-staff", "collection_radio"=>"","collection_title"=>'col title', "collection_abstract"=>"", "default_object_rights"=>"World", "use"=>"", "copyright"=>"", "cc_license"=>"", "workflow"=>"digitizationWF", "register"=>""
ActiveFedora::ObjectNotFoundError:
Unable to find 'druid:xf765cv5573' in fedora. See logger for details.
# ./config/initializers/dor.rb:5:in `agreement='
# ./app/controllers/apo_controller.rb:62:in `register'
# ./spec/controllers/apo_controller_spec.rb:37:in `block (3 levels) in <top (required)>'
Deprecation Warnings:
Using `should` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead. Called from /Users/atz/repos/argo/spec/controllers/apo_controller_spec.rb:20:in `block (4 levels) in <top (required)>'.
Using `stub` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead. Called from /Users/atz/repos/argo/spec/controllers/apo_controller_spec.rb:6:in `block (2 levels) in <top (required)>'.
If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
`config.raise_errors_for_deprecations!`, and it will turn the
deprecation warnings into errors, giving you the full backtrace.
2 deprecation warnings total
Finished in 7.12 seconds (files took 9.15 seconds to load)
181 examples, 2 failures, 9 pending
Failed examples:
rspec ./spec/controllers/apo_controller_spec.rb:18 # ApoController create should hit the registration service to register an apo and a collection
rspec ./spec/controllers/apo_controller_spec.rb:30 # ApoController create should set apo workflows to priority 70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment