curate 0.6.1 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +135 -51
- data/app/assets/images/curate/default.png +0 -0
- data/app/assets/stylesheets/layout/positioning.css.scss +4 -0
- data/app/assets/stylesheets/modules/search_results.css.scss +4 -0
- data/app/controllers/concerns/curate/fields_for_add_to_collection.rb +9 -0
- data/app/controllers/curation_concern/base_controller.rb +1 -0
- data/app/controllers/curation_concern/generic_files_controller.rb +1 -0
- data/app/models/concerns/curate/ability.rb +6 -2
- data/app/repository_models/curation_concern/model.rb +1 -1
- data/app/repository_models/generic_file.rb +4 -0
- data/app/views/application/_add_to_collection_gui.html.erb +19 -0
- data/app/views/catalog/_index_partials/_identifier_and_action.html.erb +19 -11
- data/app/views/collections/_collection.html.erb +2 -27
- data/app/views/curate/collections/_form_to_add_member.html.erb +12 -10
- data/app/views/curate/collections/add_member_form.html.erb +4 -2
- data/app/views/curation_concern/base/_collections.html.erb +0 -10
- data/app/views/curation_concern/base/_related_files.html.erb +1 -1
- data/app/views/curation_concern/base/_representative_media.html.erb +8 -0
- data/app/views/curation_concern/base/_thumbnail.html.erb +7 -5
- data/app/views/curation_concern/base/show.html.erb +14 -6
- data/app/views/curation_concern/documents/_document.html.erb +1 -1
- data/app/views/curation_concern/generic_files/_media_display.html.erb +11 -1
- data/app/views/curation_concern/generic_files/show.html.erb +1 -1
- data/app/views/curation_concern/people/_person.html.erb +2 -20
- data/app/views/profiles/_profile.html.erb +2 -27
- data/lib/curate/spec_support.rb +1 -2
- data/lib/curate/version.rb +1 -1
- data/spec/features/catalog_search_spec.rb +0 -30
- data/spec/features/generic_file_spec.rb +2 -1
- data/spec/features/generic_work_spec.rb +0 -10
- data/spec/features/thumbnail_display_spec.rb +5 -2
- data/spec/helpers/curate_helper_spec.rb +27 -0
- data/spec/internal/Gemfile.lock +6 -6
- data/spec/internal/config/initializers/devise.rb +2 -2
- data/spec/internal/config/initializers/secret_token.rb +1 -1
- data/spec/internal/db/development.sqlite3 +0 -0
- data/spec/internal/db/migrate/{20131203200422_devise_create_users.rb → 20131205204122_devise_create_users.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200427_add_devise_guests_to_users.rb → 20131205204126_add_devise_guests_to_users.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200428_create_searches.rb → 20131205204127_create_searches.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200429_create_bookmarks.rb → 20131205204128_create_bookmarks.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200430_remove_editable_fields_from_bookmarks.rb → 20131205204129_remove_editable_fields_from_bookmarks.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200431_add_user_types_to_bookmarks_searches.rb → 20131205204130_add_user_types_to_bookmarks_searches.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200432_acts_as_follower_migration.rb → 20131205204131_acts_as_follower_migration.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200433_add_social_to_users.rb → 20131205204132_add_social_to_users.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200434_create_single_use_links.rb → 20131205204133_create_single_use_links.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200435_add_ldap_attrs_to_user.rb → 20131205204134_add_ldap_attrs_to_user.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200436_add_avatars_to_users.rb → 20131205204135_add_avatars_to_users.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200437_create_checksum_audit_logs.rb → 20131205204136_create_checksum_audit_logs.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200438_create_version_committers.rb → 20131205204137_create_version_committers.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200439_add_groups_to_users.rb → 20131205204138_add_groups_to_users.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200440_create_local_authorities.rb → 20131205204139_create_local_authorities.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200441_create_trophies.rb → 20131205204140_create_trophies.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200450_create_mailboxer.mailboxer_engine.rb → 20131205204152_create_mailboxer.mailboxer_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200451_add_notified_object.mailboxer_engine.rb → 20131205204153_add_notified_object.mailboxer_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200452_add_notification_code.mailboxer_engine.rb → 20131205204154_add_notification_code.mailboxer_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200453_add_attachments.mailboxer_engine.rb → 20131205204155_add_attachments.mailboxer_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200454_rename_receipts_read.mailboxer_engine.rb → 20131205204156_rename_receipts_read.mailboxer_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200455_add_global_notification_support.mailboxer_engine.rb → 20131205204157_add_global_notification_support.mailboxer_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200459_add_terms_of_service_to_user.curate_engine.rb → 20131205204202_add_terms_of_service_to_user.curate_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200460_add_user_force_update_profile.curate_engine.rb → 20131205204203_add_user_force_update_profile.curate_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200461_create_help_requests.curate_engine.rb → 20131205204204_create_help_requests.curate_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200462_add_repository_id_to_user.curate_engine.rb → 20131205204205_add_repository_id_to_user.curate_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200463_create_curate_proxy_deposit_rights.curate_engine.rb → 20131205204206_create_curate_proxy_deposit_rights.curate_engine.rb} +0 -0
- data/spec/internal/db/migrate/{20131203200464_change_display_name_to_name.curate_engine.rb → 20131205204207_change_display_name_to_name.curate_engine.rb} +0 -0
- data/spec/internal/db/schema.rb +1 -1
- data/spec/internal/db/test.sqlite3 +0 -0
- data/spec/internal/log/development.log +203 -191
- data/spec/internal/log/test.log +84621 -104943
- data/spec/internal/spec/factories/spams_factory.rb +0 -1
- data/spec/internal/spec/fixtures/cassettes/remotely_identified_doi_mint_generic_work.yml +13 -14
- data/spec/internal/spec/fixtures/cassettes/remotely_identified_doi_mint_spam.yml +13 -14
- data/spec/internal/tmp/cache/assets/test/sass/2c6be7e0f6fa11a075d87959732f91fde3df1f13/search_results.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sass/953d624c1831fcea22a3be549290f4c654726e96/positioning.css.scssc +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/163665b72c8e98b0c88c19896f080bc4 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/1c1167e9384b80e15359a663448a3196 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/4132e961bdf0f2ffa2f96a4c7822e209 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/41dd5dbd03cfa3f49e2d7569ffd03f8d +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/611235bfd282813bdfbc998bcbe798e8 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/7d4fe23150294500a7bcd2630667e5c8 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/{7078324d4486aa4ba7a6c21debbf3638 → 98ad78dc8c309689440b20bfa7372b3e} +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ada353bb8ffe3eb0f2dd479e6d869a70 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/b148a5e98ff09a12b6a2139af1e62e46 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/{f0817826ed378d461b95e0e1ac870fcf → c14352828e1be2bbf3199771a34f9c57} +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d510daa6eb0cd4805bff7fd0990dfdb5 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d610f39602b6149ca02638c1728778b5 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/e9c2a0f2fa471ace3f7ed3a1f1b9ffc5 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/ea0ece5befbce765051e27cf991cc805 +0 -0
- data/spec/internal/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/matchers.rb +24 -0
- data/spec/{support/matchers → matchers}/metadata_field_matchers.rb +0 -0
- data/spec/{support/matchers → matchers}/raise_rescue_response_type_matcher.rb +0 -0
- data/spec/repository_models/generic_file_spec.rb +11 -0
- data/spec/spec_helper.rb +3 -2
- data/spec/support/shared/shared_examples_with_related_works.rb +0 -1
- data/spec/views/application/_add_to_collection_gui.html.erb_spec.rb +60 -0
- data/spec/views/curate/collections/_form_to_add_member.html.erb_spec.rb +11 -11
- data/spec/views/curation_concern/base/_collection.html.erb_spec.rb +0 -2
- data/spec/views/curation_concern/base/_related_files.html.erb_spec.rb +16 -0
- data/spec/views/curation_concern/base/_representative_media.html.erb_spec.rb +15 -0
- data/spec/views/curation_concern/base/_thumbnail.html.erb_spec.rb +27 -0
- data/spec/views/curation_concern/generic_files/_media_display.html.erb_spec.rb +34 -0
- data/spec/views/curation_concern/generic_files/show.html.erb_spec.rb +12 -0
- metadata +87 -74
- data/app/views/catalog/_add_to_collection_gui.html.erb +0 -15
- data/app/views/curation_concern/base/_add_to_collection_gui.html.erb +0 -18
- data/app/views/curation_concern/base/_form_to_add_collection.html.erb +0 -9
- data/app/views/curation_concern/base/_representative_image.html.erb +0 -6
- data/spec/views/catalog/_add_to_collection_gui.html.erb_spec.rb +0 -48
- data/spec/views/curation_concern/base/_add_to_collection_gui.html.erb_spec.rb +0 -34
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'curation_concern/generic_files/show.html.erb' do
|
4
|
+
it 'displays an audio player' do
|
5
|
+
file = stub_model(GenericFile, audit_stat: true, pid: '1234')
|
6
|
+
allow(view).to receive(:can?) { true }
|
7
|
+
|
8
|
+
render(template: 'curation_concern/generic_files/show', locals: {curation_concern: file, parent: file})
|
9
|
+
|
10
|
+
expect(response).to render_template(partial: '_media_display')
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: curate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Friesen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -474,6 +474,7 @@ files:
|
|
474
474
|
- app/assets/images/blacklight/remove.gif
|
475
475
|
- app/assets/images/blacklight/separator.gif
|
476
476
|
- app/assets/images/blacklight/start_over.gif
|
477
|
+
- app/assets/images/curate/default.png
|
477
478
|
- app/assets/images/curate/nope.png
|
478
479
|
- app/assets/javascripts/curate/accept_contributor_agreement.js
|
479
480
|
- app/assets/javascripts/curate/facet_mine.js
|
@@ -605,7 +606,7 @@ files:
|
|
605
606
|
- app/views/_footer.html.erb
|
606
607
|
- app/views/_ga.html.erb
|
607
608
|
- app/views/_masthead.html.erb
|
608
|
-
- app/views/
|
609
|
+
- app/views/application/_add_to_collection_gui.html.erb
|
609
610
|
- app/views/catalog/_bookmark_control.html.erb
|
610
611
|
- app/views/catalog/_bookmark_form.html.erb
|
611
612
|
- app/views/catalog/_citation.html.erb
|
@@ -681,7 +682,6 @@ files:
|
|
681
682
|
- app/views/curation_concern/articles/_form_additional_information.html.erb
|
682
683
|
- app/views/curation_concern/articles/_form_required_information.html.erb
|
683
684
|
- app/views/curation_concern/articles/edit.html.erb
|
684
|
-
- app/views/curation_concern/base/_add_to_collection_gui.html.erb
|
685
685
|
- app/views/curation_concern/base/_collections.html.erb
|
686
686
|
- app/views/curation_concern/base/_contributors_attribute.html.erb
|
687
687
|
- app/views/curation_concern/base/_doi.html.erb
|
@@ -696,7 +696,6 @@ files:
|
|
696
696
|
- app/views/curation_concern/base/_form_representative_image.html.erb
|
697
697
|
- app/views/curation_concern/base/_form_required_information.html.erb
|
698
698
|
- app/views/curation_concern/base/_form_supplementary_fields.html.erb
|
699
|
-
- app/views/curation_concern/base/_form_to_add_collection.html.erb
|
700
699
|
- app/views/curation_concern/base/_legally_binding_text.html.erb
|
701
700
|
- app/views/curation_concern/base/_linked_contributors.html.erb
|
702
701
|
- app/views/curation_concern/base/_manage_related_files.html.erb
|
@@ -704,7 +703,7 @@ files:
|
|
704
703
|
- app/views/curation_concern/base/_related_files.html.erb
|
705
704
|
- app/views/curation_concern/base/_related_resources.html.erb
|
706
705
|
- app/views/curation_concern/base/_related_works.html.erb
|
707
|
-
- app/views/curation_concern/base/
|
706
|
+
- app/views/curation_concern/base/_representative_media.html.erb
|
708
707
|
- app/views/curation_concern/base/_thumbnail.html.erb
|
709
708
|
- app/views/curation_concern/base/show.html.erb
|
710
709
|
- app/views/curation_concern/base/unauthorized.html.erb
|
@@ -974,34 +973,34 @@ files:
|
|
974
973
|
- spec/internal/config/SolrMarc/translation_maps/README_MAPS
|
975
974
|
- spec/internal/config.ru
|
976
975
|
- spec/internal/db/development.sqlite3
|
977
|
-
- spec/internal/db/migrate/
|
978
|
-
- spec/internal/db/migrate/
|
979
|
-
- spec/internal/db/migrate/
|
980
|
-
- spec/internal/db/migrate/
|
981
|
-
- spec/internal/db/migrate/
|
982
|
-
- spec/internal/db/migrate/
|
983
|
-
- spec/internal/db/migrate/
|
984
|
-
- spec/internal/db/migrate/
|
985
|
-
- spec/internal/db/migrate/
|
986
|
-
- spec/internal/db/migrate/
|
987
|
-
- spec/internal/db/migrate/
|
988
|
-
- spec/internal/db/migrate/
|
989
|
-
- spec/internal/db/migrate/
|
990
|
-
- spec/internal/db/migrate/
|
991
|
-
- spec/internal/db/migrate/
|
992
|
-
- spec/internal/db/migrate/
|
993
|
-
- spec/internal/db/migrate/
|
994
|
-
- spec/internal/db/migrate/
|
995
|
-
- spec/internal/db/migrate/
|
996
|
-
- spec/internal/db/migrate/
|
997
|
-
- spec/internal/db/migrate/
|
998
|
-
- spec/internal/db/migrate/
|
999
|
-
- spec/internal/db/migrate/
|
1000
|
-
- spec/internal/db/migrate/
|
1001
|
-
- spec/internal/db/migrate/
|
1002
|
-
- spec/internal/db/migrate/
|
1003
|
-
- spec/internal/db/migrate/
|
1004
|
-
- spec/internal/db/migrate/
|
976
|
+
- spec/internal/db/migrate/20131205204122_devise_create_users.rb
|
977
|
+
- spec/internal/db/migrate/20131205204126_add_devise_guests_to_users.rb
|
978
|
+
- spec/internal/db/migrate/20131205204127_create_searches.rb
|
979
|
+
- spec/internal/db/migrate/20131205204128_create_bookmarks.rb
|
980
|
+
- spec/internal/db/migrate/20131205204129_remove_editable_fields_from_bookmarks.rb
|
981
|
+
- spec/internal/db/migrate/20131205204130_add_user_types_to_bookmarks_searches.rb
|
982
|
+
- spec/internal/db/migrate/20131205204131_acts_as_follower_migration.rb
|
983
|
+
- spec/internal/db/migrate/20131205204132_add_social_to_users.rb
|
984
|
+
- spec/internal/db/migrate/20131205204133_create_single_use_links.rb
|
985
|
+
- spec/internal/db/migrate/20131205204134_add_ldap_attrs_to_user.rb
|
986
|
+
- spec/internal/db/migrate/20131205204135_add_avatars_to_users.rb
|
987
|
+
- spec/internal/db/migrate/20131205204136_create_checksum_audit_logs.rb
|
988
|
+
- spec/internal/db/migrate/20131205204137_create_version_committers.rb
|
989
|
+
- spec/internal/db/migrate/20131205204138_add_groups_to_users.rb
|
990
|
+
- spec/internal/db/migrate/20131205204139_create_local_authorities.rb
|
991
|
+
- spec/internal/db/migrate/20131205204140_create_trophies.rb
|
992
|
+
- spec/internal/db/migrate/20131205204152_create_mailboxer.mailboxer_engine.rb
|
993
|
+
- spec/internal/db/migrate/20131205204153_add_notified_object.mailboxer_engine.rb
|
994
|
+
- spec/internal/db/migrate/20131205204154_add_notification_code.mailboxer_engine.rb
|
995
|
+
- spec/internal/db/migrate/20131205204155_add_attachments.mailboxer_engine.rb
|
996
|
+
- spec/internal/db/migrate/20131205204156_rename_receipts_read.mailboxer_engine.rb
|
997
|
+
- spec/internal/db/migrate/20131205204157_add_global_notification_support.mailboxer_engine.rb
|
998
|
+
- spec/internal/db/migrate/20131205204202_add_terms_of_service_to_user.curate_engine.rb
|
999
|
+
- spec/internal/db/migrate/20131205204203_add_user_force_update_profile.curate_engine.rb
|
1000
|
+
- spec/internal/db/migrate/20131205204204_create_help_requests.curate_engine.rb
|
1001
|
+
- spec/internal/db/migrate/20131205204205_add_repository_id_to_user.curate_engine.rb
|
1002
|
+
- spec/internal/db/migrate/20131205204206_create_curate_proxy_deposit_rights.curate_engine.rb
|
1003
|
+
- spec/internal/db/migrate/20131205204207_change_display_name_to_name.curate_engine.rb
|
1005
1004
|
- spec/internal/db/schema.rb
|
1006
1005
|
- spec/internal/db/seeds.rb
|
1007
1006
|
- spec/internal/db/test.sqlite3
|
@@ -1143,6 +1142,7 @@ files:
|
|
1143
1142
|
- spec/internal/tmp/cache/assets/test/sprockets/3ccedd980e76c496cb22334acbbb5e28
|
1144
1143
|
- spec/internal/tmp/cache/assets/test/sprockets/409f6fd5f640b0d1ed6423d0054481c0
|
1145
1144
|
- spec/internal/tmp/cache/assets/test/sprockets/4132e961bdf0f2ffa2f96a4c7822e209
|
1145
|
+
- spec/internal/tmp/cache/assets/test/sprockets/41dd5dbd03cfa3f49e2d7569ffd03f8d
|
1146
1146
|
- spec/internal/tmp/cache/assets/test/sprockets/426440aa7e18abd865ba2e760b88cd39
|
1147
1147
|
- spec/internal/tmp/cache/assets/test/sprockets/49dddc872622de1d975f563d9d10d6c9
|
1148
1148
|
- spec/internal/tmp/cache/assets/test/sprockets/4b1fc3a748e34199e72958c656cc06cf
|
@@ -1155,7 +1155,6 @@ files:
|
|
1155
1155
|
- spec/internal/tmp/cache/assets/test/sprockets/6e0879a87dae322b4e32263452ba6b4e
|
1156
1156
|
- spec/internal/tmp/cache/assets/test/sprockets/6e8253e08a505551ade23952df1c5398
|
1157
1157
|
- spec/internal/tmp/cache/assets/test/sprockets/6fce7a434a34042465358f4ce9b4c876
|
1158
|
-
- spec/internal/tmp/cache/assets/test/sprockets/7078324d4486aa4ba7a6c21debbf3638
|
1159
1158
|
- spec/internal/tmp/cache/assets/test/sprockets/7314c3dc32b5da235df8fedc382345cf
|
1160
1159
|
- spec/internal/tmp/cache/assets/test/sprockets/7685f208e89b90425bf76796648ebc28
|
1161
1160
|
- spec/internal/tmp/cache/assets/test/sprockets/7ba48319520aec7ef07b010ac21f0136
|
@@ -1172,10 +1171,12 @@ files:
|
|
1172
1171
|
- spec/internal/tmp/cache/assets/test/sprockets/8b503f71e2ed168eb20ff8cfc20ff3d4
|
1173
1172
|
- spec/internal/tmp/cache/assets/test/sprockets/967c4a151c00ff79d54eab287c5a949b
|
1174
1173
|
- spec/internal/tmp/cache/assets/test/sprockets/97dc77c12a82b17d1e6ccd14d31917c8
|
1174
|
+
- spec/internal/tmp/cache/assets/test/sprockets/98ad78dc8c309689440b20bfa7372b3e
|
1175
1175
|
- spec/internal/tmp/cache/assets/test/sprockets/9c4023aaef54415afaf4892ced299f30
|
1176
1176
|
- spec/internal/tmp/cache/assets/test/sprockets/a530b42511788ec712de192e6d2c3114
|
1177
1177
|
- spec/internal/tmp/cache/assets/test/sprockets/a5b14fb35b6609fda372da27bcd729a7
|
1178
1178
|
- spec/internal/tmp/cache/assets/test/sprockets/a8a9b28de30b069c2336fc9417accefb
|
1179
|
+
- spec/internal/tmp/cache/assets/test/sprockets/ada353bb8ffe3eb0f2dd479e6d869a70
|
1179
1180
|
- spec/internal/tmp/cache/assets/test/sprockets/af84f7fe3cda47ac78bf90dd6ce9485e
|
1180
1181
|
- spec/internal/tmp/cache/assets/test/sprockets/b148a5e98ff09a12b6a2139af1e62e46
|
1181
1182
|
- spec/internal/tmp/cache/assets/test/sprockets/b3b3d7f6ecf32ce8216b40eccc5da386
|
@@ -1184,6 +1185,7 @@ files:
|
|
1184
1185
|
- spec/internal/tmp/cache/assets/test/sprockets/b9a04216850a5d6e6cc17b9292677aa6
|
1185
1186
|
- spec/internal/tmp/cache/assets/test/sprockets/bd0dea58c57774fef248f0b0844a4654
|
1186
1187
|
- spec/internal/tmp/cache/assets/test/sprockets/bd4a5121c6495d513075e759f8cca6ed
|
1188
|
+
- spec/internal/tmp/cache/assets/test/sprockets/c14352828e1be2bbf3199771a34f9c57
|
1187
1189
|
- spec/internal/tmp/cache/assets/test/sprockets/c22725116e2bbc4bdf0867ab02b3623e
|
1188
1190
|
- spec/internal/tmp/cache/assets/test/sprockets/c6d2f8432ae24aaa27e3c17827d59e9a
|
1189
1191
|
- spec/internal/tmp/cache/assets/test/sprockets/c89f789c6b72000300327021b7d4c5c2
|
@@ -1210,7 +1212,6 @@ files:
|
|
1210
1212
|
- spec/internal/tmp/cache/assets/test/sprockets/e9c2a0f2fa471ace3f7ed3a1f1b9ffc5
|
1211
1213
|
- spec/internal/tmp/cache/assets/test/sprockets/ea0ece5befbce765051e27cf991cc805
|
1212
1214
|
- spec/internal/tmp/cache/assets/test/sprockets/ee98c5174937598bf3cc6cbd06de1930
|
1213
|
-
- spec/internal/tmp/cache/assets/test/sprockets/f0817826ed378d461b95e0e1ac870fcf
|
1214
1215
|
- spec/internal/tmp/cache/assets/test/sprockets/f43e6de318148b8815fa65c6fd6ea092
|
1215
1216
|
- spec/internal/tmp/cache/assets/test/sprockets/f50893e335447632cec50794d690a0a1
|
1216
1217
|
- spec/internal/tmp/cache/assets/test/sprockets/f7cb8bfc6fbf85d140b26cbd555a56a0
|
@@ -1225,6 +1226,9 @@ files:
|
|
1225
1226
|
- spec/lib/curate_spec.rb
|
1226
1227
|
- spec/lib/generators/curate/work/work_generator_spec.rb
|
1227
1228
|
- spec/mailers/notification_mailer_spec.rb
|
1229
|
+
- spec/matchers/metadata_field_matchers.rb
|
1230
|
+
- spec/matchers/raise_rescue_response_type_matcher.rb
|
1231
|
+
- spec/matchers.rb
|
1228
1232
|
- spec/models/account_spec.rb
|
1229
1233
|
- spec/models/classify_concern_spec.rb
|
1230
1234
|
- spec/models/contributor_agreement_spec.rb
|
@@ -1284,8 +1288,6 @@ files:
|
|
1284
1288
|
- spec/support/features.rb
|
1285
1289
|
- spec/support/files/default_fits_output.xml
|
1286
1290
|
- spec/support/input_support.rb
|
1287
|
-
- spec/support/matchers/metadata_field_matchers.rb
|
1288
|
-
- spec/support/matchers/raise_rescue_response_type_matcher.rb
|
1289
1291
|
- spec/support/shared/has_common_solr_fields.rb
|
1290
1292
|
- spec/support/shared/has_linked_contributors.rb
|
1291
1293
|
- spec/support/shared/shared_examples_a_collectible.rb
|
@@ -1299,16 +1301,20 @@ files:
|
|
1299
1301
|
- spec/support/shared/shared_examples_with_access_rights.rb
|
1300
1302
|
- spec/support/shared/shared_examples_with_related_works.rb
|
1301
1303
|
- spec/validators/future_date_validator_spec.rb
|
1302
|
-
- spec/views/
|
1304
|
+
- spec/views/application/_add_to_collection_gui.html.erb_spec.rb
|
1303
1305
|
- spec/views/catalog/_index_partials/_thumbnail_display.html.erb_spec.rb
|
1304
1306
|
- spec/views/classify_concerns/new.html.erb_spec.rb
|
1305
1307
|
- spec/views/curate/collections/_form_to_add_member.html.erb_spec.rb
|
1306
1308
|
- spec/views/curate/collections/edit.html.erb_spec.rb
|
1307
1309
|
- spec/views/curate/people/show.html.erb_spec.rb
|
1308
|
-
- spec/views/curation_concern/base/_add_to_collection_gui.html.erb_spec.rb
|
1309
1310
|
- spec/views/curation_concern/base/_collection.html.erb_spec.rb
|
1310
1311
|
- spec/views/curation_concern/base/_contributors_attribute.html.erb_spec.rb
|
1311
1312
|
- spec/views/curation_concern/base/_form.html.erb_spec.rb
|
1313
|
+
- spec/views/curation_concern/base/_related_files.html.erb_spec.rb
|
1314
|
+
- spec/views/curation_concern/base/_representative_media.html.erb_spec.rb
|
1315
|
+
- spec/views/curation_concern/base/_thumbnail.html.erb_spec.rb
|
1316
|
+
- spec/views/curation_concern/generic_files/_media_display.html.erb_spec.rb
|
1317
|
+
- spec/views/curation_concern/generic_files/show.html.erb_spec.rb
|
1312
1318
|
- spec/views/shared/_site_actions.html.erb_spec.rb
|
1313
1319
|
- spec/workers/characterize_job_spec.rb
|
1314
1320
|
- spec/workers/mint_remote_identifier_worker_spec.rb
|
@@ -1481,34 +1487,34 @@ test_files:
|
|
1481
1487
|
- spec/internal/config/SolrMarc/translation_maps/README_MAPS
|
1482
1488
|
- spec/internal/config.ru
|
1483
1489
|
- spec/internal/db/development.sqlite3
|
1484
|
-
- spec/internal/db/migrate/
|
1485
|
-
- spec/internal/db/migrate/
|
1486
|
-
- spec/internal/db/migrate/
|
1487
|
-
- spec/internal/db/migrate/
|
1488
|
-
- spec/internal/db/migrate/
|
1489
|
-
- spec/internal/db/migrate/
|
1490
|
-
- spec/internal/db/migrate/
|
1491
|
-
- spec/internal/db/migrate/
|
1492
|
-
- spec/internal/db/migrate/
|
1493
|
-
- spec/internal/db/migrate/
|
1494
|
-
- spec/internal/db/migrate/
|
1495
|
-
- spec/internal/db/migrate/
|
1496
|
-
- spec/internal/db/migrate/
|
1497
|
-
- spec/internal/db/migrate/
|
1498
|
-
- spec/internal/db/migrate/
|
1499
|
-
- spec/internal/db/migrate/
|
1500
|
-
- spec/internal/db/migrate/
|
1501
|
-
- spec/internal/db/migrate/
|
1502
|
-
- spec/internal/db/migrate/
|
1503
|
-
- spec/internal/db/migrate/
|
1504
|
-
- spec/internal/db/migrate/
|
1505
|
-
- spec/internal/db/migrate/
|
1506
|
-
- spec/internal/db/migrate/
|
1507
|
-
- spec/internal/db/migrate/
|
1508
|
-
- spec/internal/db/migrate/
|
1509
|
-
- spec/internal/db/migrate/
|
1510
|
-
- spec/internal/db/migrate/
|
1511
|
-
- spec/internal/db/migrate/
|
1490
|
+
- spec/internal/db/migrate/20131205204122_devise_create_users.rb
|
1491
|
+
- spec/internal/db/migrate/20131205204126_add_devise_guests_to_users.rb
|
1492
|
+
- spec/internal/db/migrate/20131205204127_create_searches.rb
|
1493
|
+
- spec/internal/db/migrate/20131205204128_create_bookmarks.rb
|
1494
|
+
- spec/internal/db/migrate/20131205204129_remove_editable_fields_from_bookmarks.rb
|
1495
|
+
- spec/internal/db/migrate/20131205204130_add_user_types_to_bookmarks_searches.rb
|
1496
|
+
- spec/internal/db/migrate/20131205204131_acts_as_follower_migration.rb
|
1497
|
+
- spec/internal/db/migrate/20131205204132_add_social_to_users.rb
|
1498
|
+
- spec/internal/db/migrate/20131205204133_create_single_use_links.rb
|
1499
|
+
- spec/internal/db/migrate/20131205204134_add_ldap_attrs_to_user.rb
|
1500
|
+
- spec/internal/db/migrate/20131205204135_add_avatars_to_users.rb
|
1501
|
+
- spec/internal/db/migrate/20131205204136_create_checksum_audit_logs.rb
|
1502
|
+
- spec/internal/db/migrate/20131205204137_create_version_committers.rb
|
1503
|
+
- spec/internal/db/migrate/20131205204138_add_groups_to_users.rb
|
1504
|
+
- spec/internal/db/migrate/20131205204139_create_local_authorities.rb
|
1505
|
+
- spec/internal/db/migrate/20131205204140_create_trophies.rb
|
1506
|
+
- spec/internal/db/migrate/20131205204152_create_mailboxer.mailboxer_engine.rb
|
1507
|
+
- spec/internal/db/migrate/20131205204153_add_notified_object.mailboxer_engine.rb
|
1508
|
+
- spec/internal/db/migrate/20131205204154_add_notification_code.mailboxer_engine.rb
|
1509
|
+
- spec/internal/db/migrate/20131205204155_add_attachments.mailboxer_engine.rb
|
1510
|
+
- spec/internal/db/migrate/20131205204156_rename_receipts_read.mailboxer_engine.rb
|
1511
|
+
- spec/internal/db/migrate/20131205204157_add_global_notification_support.mailboxer_engine.rb
|
1512
|
+
- spec/internal/db/migrate/20131205204202_add_terms_of_service_to_user.curate_engine.rb
|
1513
|
+
- spec/internal/db/migrate/20131205204203_add_user_force_update_profile.curate_engine.rb
|
1514
|
+
- spec/internal/db/migrate/20131205204204_create_help_requests.curate_engine.rb
|
1515
|
+
- spec/internal/db/migrate/20131205204205_add_repository_id_to_user.curate_engine.rb
|
1516
|
+
- spec/internal/db/migrate/20131205204206_create_curate_proxy_deposit_rights.curate_engine.rb
|
1517
|
+
- spec/internal/db/migrate/20131205204207_change_display_name_to_name.curate_engine.rb
|
1512
1518
|
- spec/internal/db/schema.rb
|
1513
1519
|
- spec/internal/db/seeds.rb
|
1514
1520
|
- spec/internal/db/test.sqlite3
|
@@ -1650,6 +1656,7 @@ test_files:
|
|
1650
1656
|
- spec/internal/tmp/cache/assets/test/sprockets/3ccedd980e76c496cb22334acbbb5e28
|
1651
1657
|
- spec/internal/tmp/cache/assets/test/sprockets/409f6fd5f640b0d1ed6423d0054481c0
|
1652
1658
|
- spec/internal/tmp/cache/assets/test/sprockets/4132e961bdf0f2ffa2f96a4c7822e209
|
1659
|
+
- spec/internal/tmp/cache/assets/test/sprockets/41dd5dbd03cfa3f49e2d7569ffd03f8d
|
1653
1660
|
- spec/internal/tmp/cache/assets/test/sprockets/426440aa7e18abd865ba2e760b88cd39
|
1654
1661
|
- spec/internal/tmp/cache/assets/test/sprockets/49dddc872622de1d975f563d9d10d6c9
|
1655
1662
|
- spec/internal/tmp/cache/assets/test/sprockets/4b1fc3a748e34199e72958c656cc06cf
|
@@ -1662,7 +1669,6 @@ test_files:
|
|
1662
1669
|
- spec/internal/tmp/cache/assets/test/sprockets/6e0879a87dae322b4e32263452ba6b4e
|
1663
1670
|
- spec/internal/tmp/cache/assets/test/sprockets/6e8253e08a505551ade23952df1c5398
|
1664
1671
|
- spec/internal/tmp/cache/assets/test/sprockets/6fce7a434a34042465358f4ce9b4c876
|
1665
|
-
- spec/internal/tmp/cache/assets/test/sprockets/7078324d4486aa4ba7a6c21debbf3638
|
1666
1672
|
- spec/internal/tmp/cache/assets/test/sprockets/7314c3dc32b5da235df8fedc382345cf
|
1667
1673
|
- spec/internal/tmp/cache/assets/test/sprockets/7685f208e89b90425bf76796648ebc28
|
1668
1674
|
- spec/internal/tmp/cache/assets/test/sprockets/7ba48319520aec7ef07b010ac21f0136
|
@@ -1679,10 +1685,12 @@ test_files:
|
|
1679
1685
|
- spec/internal/tmp/cache/assets/test/sprockets/8b503f71e2ed168eb20ff8cfc20ff3d4
|
1680
1686
|
- spec/internal/tmp/cache/assets/test/sprockets/967c4a151c00ff79d54eab287c5a949b
|
1681
1687
|
- spec/internal/tmp/cache/assets/test/sprockets/97dc77c12a82b17d1e6ccd14d31917c8
|
1688
|
+
- spec/internal/tmp/cache/assets/test/sprockets/98ad78dc8c309689440b20bfa7372b3e
|
1682
1689
|
- spec/internal/tmp/cache/assets/test/sprockets/9c4023aaef54415afaf4892ced299f30
|
1683
1690
|
- spec/internal/tmp/cache/assets/test/sprockets/a530b42511788ec712de192e6d2c3114
|
1684
1691
|
- spec/internal/tmp/cache/assets/test/sprockets/a5b14fb35b6609fda372da27bcd729a7
|
1685
1692
|
- spec/internal/tmp/cache/assets/test/sprockets/a8a9b28de30b069c2336fc9417accefb
|
1693
|
+
- spec/internal/tmp/cache/assets/test/sprockets/ada353bb8ffe3eb0f2dd479e6d869a70
|
1686
1694
|
- spec/internal/tmp/cache/assets/test/sprockets/af84f7fe3cda47ac78bf90dd6ce9485e
|
1687
1695
|
- spec/internal/tmp/cache/assets/test/sprockets/b148a5e98ff09a12b6a2139af1e62e46
|
1688
1696
|
- spec/internal/tmp/cache/assets/test/sprockets/b3b3d7f6ecf32ce8216b40eccc5da386
|
@@ -1691,6 +1699,7 @@ test_files:
|
|
1691
1699
|
- spec/internal/tmp/cache/assets/test/sprockets/b9a04216850a5d6e6cc17b9292677aa6
|
1692
1700
|
- spec/internal/tmp/cache/assets/test/sprockets/bd0dea58c57774fef248f0b0844a4654
|
1693
1701
|
- spec/internal/tmp/cache/assets/test/sprockets/bd4a5121c6495d513075e759f8cca6ed
|
1702
|
+
- spec/internal/tmp/cache/assets/test/sprockets/c14352828e1be2bbf3199771a34f9c57
|
1694
1703
|
- spec/internal/tmp/cache/assets/test/sprockets/c22725116e2bbc4bdf0867ab02b3623e
|
1695
1704
|
- spec/internal/tmp/cache/assets/test/sprockets/c6d2f8432ae24aaa27e3c17827d59e9a
|
1696
1705
|
- spec/internal/tmp/cache/assets/test/sprockets/c89f789c6b72000300327021b7d4c5c2
|
@@ -1717,7 +1726,6 @@ test_files:
|
|
1717
1726
|
- spec/internal/tmp/cache/assets/test/sprockets/e9c2a0f2fa471ace3f7ed3a1f1b9ffc5
|
1718
1727
|
- spec/internal/tmp/cache/assets/test/sprockets/ea0ece5befbce765051e27cf991cc805
|
1719
1728
|
- spec/internal/tmp/cache/assets/test/sprockets/ee98c5174937598bf3cc6cbd06de1930
|
1720
|
-
- spec/internal/tmp/cache/assets/test/sprockets/f0817826ed378d461b95e0e1ac870fcf
|
1721
1729
|
- spec/internal/tmp/cache/assets/test/sprockets/f43e6de318148b8815fa65c6fd6ea092
|
1722
1730
|
- spec/internal/tmp/cache/assets/test/sprockets/f50893e335447632cec50794d690a0a1
|
1723
1731
|
- spec/internal/tmp/cache/assets/test/sprockets/f7cb8bfc6fbf85d140b26cbd555a56a0
|
@@ -1732,6 +1740,9 @@ test_files:
|
|
1732
1740
|
- spec/lib/curate_spec.rb
|
1733
1741
|
- spec/lib/generators/curate/work/work_generator_spec.rb
|
1734
1742
|
- spec/mailers/notification_mailer_spec.rb
|
1743
|
+
- spec/matchers/metadata_field_matchers.rb
|
1744
|
+
- spec/matchers/raise_rescue_response_type_matcher.rb
|
1745
|
+
- spec/matchers.rb
|
1735
1746
|
- spec/models/account_spec.rb
|
1736
1747
|
- spec/models/classify_concern_spec.rb
|
1737
1748
|
- spec/models/contributor_agreement_spec.rb
|
@@ -1791,8 +1802,6 @@ test_files:
|
|
1791
1802
|
- spec/support/features.rb
|
1792
1803
|
- spec/support/files/default_fits_output.xml
|
1793
1804
|
- spec/support/input_support.rb
|
1794
|
-
- spec/support/matchers/metadata_field_matchers.rb
|
1795
|
-
- spec/support/matchers/raise_rescue_response_type_matcher.rb
|
1796
1805
|
- spec/support/shared/has_common_solr_fields.rb
|
1797
1806
|
- spec/support/shared/has_linked_contributors.rb
|
1798
1807
|
- spec/support/shared/shared_examples_a_collectible.rb
|
@@ -1806,16 +1815,20 @@ test_files:
|
|
1806
1815
|
- spec/support/shared/shared_examples_with_access_rights.rb
|
1807
1816
|
- spec/support/shared/shared_examples_with_related_works.rb
|
1808
1817
|
- spec/validators/future_date_validator_spec.rb
|
1809
|
-
- spec/views/
|
1818
|
+
- spec/views/application/_add_to_collection_gui.html.erb_spec.rb
|
1810
1819
|
- spec/views/catalog/_index_partials/_thumbnail_display.html.erb_spec.rb
|
1811
1820
|
- spec/views/classify_concerns/new.html.erb_spec.rb
|
1812
1821
|
- spec/views/curate/collections/_form_to_add_member.html.erb_spec.rb
|
1813
1822
|
- spec/views/curate/collections/edit.html.erb_spec.rb
|
1814
1823
|
- spec/views/curate/people/show.html.erb_spec.rb
|
1815
|
-
- spec/views/curation_concern/base/_add_to_collection_gui.html.erb_spec.rb
|
1816
1824
|
- spec/views/curation_concern/base/_collection.html.erb_spec.rb
|
1817
1825
|
- spec/views/curation_concern/base/_contributors_attribute.html.erb_spec.rb
|
1818
1826
|
- spec/views/curation_concern/base/_form.html.erb_spec.rb
|
1827
|
+
- spec/views/curation_concern/base/_related_files.html.erb_spec.rb
|
1828
|
+
- spec/views/curation_concern/base/_representative_media.html.erb_spec.rb
|
1829
|
+
- spec/views/curation_concern/base/_thumbnail.html.erb_spec.rb
|
1830
|
+
- spec/views/curation_concern/generic_files/_media_display.html.erb_spec.rb
|
1831
|
+
- spec/views/curation_concern/generic_files/show.html.erb_spec.rb
|
1819
1832
|
- spec/views/shared/_site_actions.html.erb_spec.rb
|
1820
1833
|
- spec/workers/characterize_job_spec.rb
|
1821
1834
|
- spec/workers/mint_remote_identifier_worker_spec.rb
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<% if @collection_options.present? || available_profiles.present? %>
|
2
|
-
<% modal_id = "#{document.noid}-modal" %>
|
3
|
-
<div class="modal fade" id="<%= modal_id %>">
|
4
|
-
<div class="modal-dialog">
|
5
|
-
<div class="modal-content">
|
6
|
-
<div class="modal-header">
|
7
|
-
<h4 class="modal-title">Add <%= document %> to:</h4>
|
8
|
-
</div>
|
9
|
-
<%= render partial: 'curate/collections/form_to_add_member', locals: { collectible: document, fieldset_class: 'with-side-padding with-top-padding' } %>
|
10
|
-
</div>
|
11
|
-
</div>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<%= link_to 'Add to Collection', add_member_form_collections_path(collectible_id: document.pid), data: { toggle: "modal", target: ('#' + modal_id) }, method: :get, class: "pull-right btn add-to-collection", remote: true %>
|
15
|
-
<% end %>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<% if current_user %>
|
2
|
-
<% modal_id = "#{collectible.noid}-modal" %>
|
3
|
-
<div class="modal fade" id="<%= modal_id %>">
|
4
|
-
<div class="modal-dialog">
|
5
|
-
<div class="modal-content">
|
6
|
-
<div class="modal-header">
|
7
|
-
<button type="button" class="btn pull-right" data-dismiss="modal" aria-hidden="true">×</button>
|
8
|
-
<h4 class="modal-title">Add <%= "#{collectible}" %> to one of your collections:</h4>
|
9
|
-
</div>
|
10
|
-
<div class="modal-body">
|
11
|
-
<%= render partial: 'form_to_add_collection', locals: { collectible: collectible } %>
|
12
|
-
</div>
|
13
|
-
</div>
|
14
|
-
</div>
|
15
|
-
</div>
|
16
|
-
|
17
|
-
<%= link_to 'Add to Collection', add_member_form_collections_path(collectible_id: collectible.pid), data: { toggle: "modal", target: ('#' + modal_id) }, method: :get, class: "btn btn-primary add-to-collection", remote: true %>
|
18
|
-
<% end %>
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<% if defined?(collectible) %>
|
2
|
-
<%= form_tag add_member_collections_path(redirect_to: request.original_url), method: :put do %>
|
3
|
-
<fieldset class="required">
|
4
|
-
<%= hidden_field_tag :collectible_id, collectible.pid %>
|
5
|
-
<%= select_tag :collection_id, options_from_collection_for_select(current_user.collections.to_a, :id, :title, collectible.collection_ids), include_blank: true %>
|
6
|
-
</fieldset>
|
7
|
-
<%= submit_tag "Add It!", class: 'btn btn-primary' %>
|
8
|
-
<% end %>
|
9
|
-
<% end %>
|
@@ -1,6 +0,0 @@
|
|
1
|
-
<%# Override this partial if you want a more complex preview of the object (e.g. Deep zoom viewer, or a larger image preview) %>
|
2
|
-
<%- if work.representative.present? -%>
|
3
|
-
<%= image_tag download_path(work.representative, datastream_id: 'thumbnail'), class: 'representative_image' %>
|
4
|
-
<%- else -%>
|
5
|
-
<%= image_tag 'curate/nope.png', class: "canonical-image" %>
|
6
|
-
<%- end -%>
|
@@ -1,48 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe 'catalog/_add_to_collection_gui' do
|
4
|
-
let(:document) { FactoryGirl.create(:generic_work) }
|
5
|
-
let(:person) { FactoryGirl.create(:person_with_user) }
|
6
|
-
let(:profile) { person.profile }
|
7
|
-
let(:profile_section) { double(title: 'Section 1', pid: '123')}
|
8
|
-
|
9
|
-
context 'with collections' do
|
10
|
-
before do
|
11
|
-
assign :collection_options, [document]
|
12
|
-
assign(:available_profiles, view.stub(:available_profiles).and_return([profile]))
|
13
|
-
assign(:current_users_profile_sections, view.stub(:current_users_profile_sections).and_return([]))
|
14
|
-
render partial: 'add_to_collection_gui', locals: { document: document }
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'displays the link to add work to a collection' do
|
18
|
-
rendered.should have_link('Add to Collection', add_member_form_collections_path(collectible_id: document.pid))
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
context 'with a profile' do
|
23
|
-
before do
|
24
|
-
assign :collection_options, []
|
25
|
-
assign(:available_profiles, view.stub(:available_profiles).and_return([profile]))
|
26
|
-
assign(:current_users_profile_sections, view.stub(:current_users_profile_sections).and_return([profile_section]))
|
27
|
-
render partial: 'add_to_collection_gui', locals: { document: document }
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'displays the link to add work to a collection' do
|
31
|
-
rendered.should have_link('Add to Collection', add_member_form_collections_path(collectible_id: document.pid))
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
context 'with no collections and profile' do
|
36
|
-
before do
|
37
|
-
assign :collection_options, []
|
38
|
-
assign(:available_profiles, view.stub(:available_profiles).and_return(nil))
|
39
|
-
assign(:current_users_profile_sections, view.stub(:current_users_profile_sections).and_return([]))
|
40
|
-
render partial: 'add_to_collection_gui', locals: { document: document }
|
41
|
-
end
|
42
|
-
|
43
|
-
it 'displays no link' do
|
44
|
-
rendered.should_not have_link('Add to Collection')
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
end
|