Skip to content

Instantly share code, notes, and snippets.

@grosscol

grosscol/1086 rspec fails

Last active Aug 29, 2015
Embed
What would you like to do?
Sufia pcdm_1086 fails.
In feature branch to get GenericWork to top level class in Sufia, and
Sufia::Works::Work and Sufia::Works::Generic work as Concern in branch:
https://github.com/grosscol/sufia/tree/pcdm_1086
rspec Failures:
1) CurationConcern::GenericWorkActor#create valid attributes with a file authenticated visibility should stamp each file with the access rights
Failure/Error: expect(subject.create).to be true
ActiveFedora::UnknownAttributeError:
GenericFile does not have an attribute `generic_work_id'
# ./sufia-models/app/actors/curation_concern/generic_work_actor.rb:81:in `attach_file'
# ./sufia-models/app/actors/curation_concern/generic_work_actor.rb:30:in `block in attach_files'
# ./sufia-models/app/actors/curation_concern/generic_work_actor.rb:29:in `each'
# ./sufia-models/app/actors/curation_concern/generic_work_actor.rb:29:in `all?'
# ./sufia-models/app/actors/curation_concern/generic_work_actor.rb:29:in `attach_files'
# ./sufia-models/app/actors/curation_concern/generic_work_actor.rb:6:in `create'
# ./spec/actors/curation_concern/generic_work_actor_spec.rb:53:in `block (6 levels) in <top (required)>'
2) CurationConcern::GenericWorkActor#create valid attributes with multiple files file authenticated visibility should stamp each file with the access rights
Failure/Error: expect(subject.create).to be true
ActiveFedora::UnknownAttributeError:
GenericFile does not have an attribute `generic_work_id'
# ./sufia-models/app/actors/curation_concern/generic_work_actor.rb:81:in `attach_file'
# ./sufia-models/app/actors/curation_concern/generic_work_actor.rb:30:in `block in attach_files'
# ./sufia-models/app/actors/curation_concern/generic_work_actor.rb:29:in `each'
# ./sufia-models/app/actors/curation_concern/generic_work_actor.rb:29:in `all?'
# ./sufia-models/app/actors/curation_concern/generic_work_actor.rb:29:in `attach_files'
# ./sufia-models/app/actors/curation_concern/generic_work_actor.rb:6:in `create'
# ./spec/actors/curation_concern/generic_work_actor_spec.rb:85:in `block (6 levels) in <top (required)>'
3) searching as a public user using the gallery view
Failure/Error: click_link "Gallery"
ActionView::Template::Error:
undefined method `track_generic_work_path' for #<#<Class:0x007f1dce109328>:0x007f1dc6b05e88>
# ./app/views/catalog/index.html.erb:6:in `__home_grosscol_workspace_sufia_app_views_catalog_index_html_erb__1418284080396753820_69882993956640'
# ./spec/features/search_spec.rb:23:in `block (3 levels) in <top (required)>'
Failed examples:
rspec ./spec/actors/curation_concern/generic_work_actor_spec.rb:46 # CurationConcern::GenericWorkActor#create valid attributes with a file authenticated visibility should stamp each file with the access rights
rspec ./spec/actors/curation_concern/generic_work_actor_spec.rb:77 # CurationConcern::GenericWorkActor#create valid attributes with multiple files file authenticated visibility should stamp each file with the access rights
rspec ./spec/features/search_spec.rb:14 # searching as a public user using the gallery view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.