enju_biblio 0.1.3 → 0.2.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +3 -3
- data/app/controllers/agent_import_files_controller.rb +13 -3
- data/app/controllers/agent_import_results_controller.rb +12 -1
- data/app/controllers/agent_merge_lists_controller.rb +11 -1
- data/app/controllers/agent_merges_controller.rb +12 -2
- data/app/controllers/agent_relationship_types_controller.rb +13 -2
- data/app/controllers/agent_relationships_controller.rb +13 -4
- data/app/controllers/agent_types_controller.rb +13 -2
- data/app/controllers/agents_controller.rb +18 -12
- data/app/controllers/carrier_types_controller.rb +12 -2
- data/app/controllers/concerns/enju_biblio/controller.rb +99 -0
- data/app/controllers/content_types_controller.rb +12 -1
- data/app/controllers/countries_controller.rb +12 -1
- data/app/controllers/create_types_controller.rb +13 -2
- data/app/controllers/creates_controller.rb +13 -4
- data/app/controllers/donates_controller.rb +11 -1
- data/app/controllers/form_of_works_controller.rb +13 -2
- data/app/controllers/frequencies_controller.rb +13 -2
- data/app/controllers/identifier_types_controller.rb +13 -2
- data/app/controllers/import_requests_controller.rb +19 -9
- data/app/controllers/items_controller.rb +25 -13
- data/app/controllers/languages_controller.rb +12 -1
- data/app/controllers/licenses_controller.rb +13 -2
- data/app/controllers/manifestation_relationship_types_controller.rb +12 -1
- data/app/controllers/manifestation_relationships_controller.rb +13 -4
- data/app/controllers/manifestations_controller.rb +58 -30
- data/app/controllers/medium_of_performances_controller.rb +13 -2
- data/app/controllers/owns_controller.rb +12 -3
- data/app/controllers/picture_files_controller.rb +13 -3
- data/app/controllers/produce_types_controller.rb +13 -2
- data/app/controllers/produces_controller.rb +13 -4
- data/app/controllers/realize_types_controller.rb +13 -2
- data/app/controllers/realizes_controller.rb +13 -4
- data/app/controllers/resource_export_files_controller.rb +13 -3
- data/app/controllers/resource_import_files_controller.rb +14 -4
- data/app/controllers/resource_import_results_controller.rb +12 -1
- data/app/controllers/series_statement_merge_lists_controller.rb +11 -1
- data/app/controllers/series_statement_merges_controller.rb +12 -2
- data/app/controllers/series_statements_controller.rb +13 -5
- data/app/helpers/manifestations_helper.rb +8 -8
- data/app/jobs/agent_import_file_job.rb +7 -0
- data/app/jobs/resource_export_file_job.rb +7 -0
- data/app/jobs/resource_import_file_job.rb +7 -0
- data/app/models/agent.rb +23 -1
- data/app/models/agent_import_file.rb +0 -1
- data/app/models/carrier_type.rb +0 -1
- data/app/models/identifier.rb +1 -1
- data/app/models/item.rb +2 -9
- data/app/models/manifestation.rb +180 -75
- data/app/models/picture_file.rb +1 -1
- data/app/models/resource_export_file.rb +5 -3
- data/app/models/resource_import_file.rb +34 -50
- data/app/models/series_statement.rb +8 -1
- data/app/policies/agent_import_file_policy.rb +21 -0
- data/app/policies/agent_import_result_policy.rb +21 -0
- data/app/policies/agent_merge_list_policy.rb +25 -0
- data/app/policies/agent_merge_policy.rb +25 -0
- data/app/policies/agent_policy.rb +30 -0
- data/app/policies/agent_relationship_policy.rb +21 -0
- data/app/policies/agent_relationship_type_policy.rb +21 -0
- data/app/policies/agent_type_policy.rb +23 -0
- data/app/policies/carrier_type_policy.rb +23 -0
- data/app/policies/content_type_policy.rb +23 -0
- data/app/policies/country_policy.rb +21 -0
- data/app/policies/create_policy.rb +21 -0
- data/app/policies/create_type_policy.rb +21 -0
- data/app/policies/donate_policy.rb +21 -0
- data/app/policies/form_of_work_policy.rb +21 -0
- data/app/policies/frequency_policy.rb +23 -0
- data/app/policies/identifier_type_policy.rb +23 -0
- data/app/policies/import_request_policy.rb +21 -0
- data/app/policies/item_policy.rb +27 -0
- data/app/policies/language_policy.rb +21 -0
- data/app/policies/license_policy.rb +21 -0
- data/app/policies/manifestation_policy.rb +67 -0
- data/app/policies/manifestation_relationship_policy.rb +21 -0
- data/app/policies/manifestation_relationship_type_policy.rb +21 -0
- data/app/policies/medium_of_performance_policy.rb +21 -0
- data/app/policies/own_policy.rb +21 -0
- data/app/policies/picture_file_policy.rb +32 -0
- data/app/policies/produce_policy.rb +21 -0
- data/app/policies/produce_type_policy.rb +21 -0
- data/app/policies/realize_policy.rb +21 -0
- data/app/policies/realize_type_policy.rb +21 -0
- data/app/policies/resource_export_file_policy.rb +21 -0
- data/app/policies/resource_import_file_policy.rb +21 -0
- data/app/policies/resource_import_result_policy.rb +21 -0
- data/app/policies/series_statement_merge_list_policy.rb +25 -0
- data/app/policies/series_statement_merge_policy.rb +25 -0
- data/app/policies/series_statement_policy.rb +25 -0
- data/app/views/agent_relationship_types/index.html.erb +4 -4
- data/app/views/agent_types/index.html.erb +4 -4
- data/app/views/agent_types/show.html.erb +1 -1
- data/app/views/agents/_agent.html.erb +2 -2
- data/app/views/agents/_index.html.erb +1 -1
- data/app/views/agents/_index_agent.html.erb +4 -4
- data/app/views/agents/_index_agent_merge_list.html.erb +2 -2
- data/app/views/agents/_index_expression.html.erb +3 -3
- data/app/views/agents/_index_manifestation.html.erb +3 -3
- data/app/views/agents/_index_work.html.erb +3 -3
- data/app/views/agents/edit.html.erb +1 -1
- data/app/views/agents/{index.mobile.erb → index.html+phone.erb} +0 -0
- data/app/views/agents/index.json.jbuilder +5 -0
- data/app/views/agents/index.rss.builder +2 -2
- data/app/views/agents/{show.mobile.erb → show.html+phone.erb} +0 -0
- data/app/views/agents/show.html.erb +3 -3
- data/app/views/carrier_types/_form.html.erb +1 -1
- data/app/views/carrier_types/index.html.erb +4 -4
- data/app/views/carrier_types/show.html.erb +1 -1
- data/app/views/content_types/index.html.erb +4 -4
- data/app/views/content_types/show.html.erb +1 -1
- data/app/views/countries/index.html.erb +3 -3
- data/app/views/countries/show.html.erb +1 -1
- data/app/views/create_types/index.html.erb +4 -4
- data/app/views/creates/_index.html.erb +2 -2
- data/app/views/creates/_index_agent.html.erb +3 -3
- data/app/views/creates/_index_work.html.erb +2 -2
- data/app/views/donates/index.html.erb +2 -2
- data/app/views/form_of_works/index.html.erb +4 -4
- data/app/views/form_of_works/show.html.erb +1 -1
- data/app/views/frequencies/index.html.erb +4 -4
- data/app/views/frequencies/show.html.erb +1 -1
- data/app/views/identifier_types/index.html.erb +4 -4
- data/app/views/identifier_types/show.html.erb +1 -1
- data/app/views/import_requests/index.html.erb +1 -1
- data/app/views/items/{_shelf_picture.mobile.erb → _shelf_picture.html+phone.erb} +0 -0
- data/app/views/items/edit.html.erb +2 -2
- data/app/views/items/{index.mobile.erb → index.html+phone.erb} +1 -1
- data/app/views/items/index.html.erb +2 -2
- data/app/views/items/new.html.erb +1 -5
- data/app/views/items/{show.mobile.erb → show.html+phone.erb} +0 -0
- data/app/views/items/show.html.erb +10 -6
- data/app/views/languages/index.html.erb +3 -3
- data/app/views/languages/show.html.erb +1 -1
- data/app/views/layouts/{agents.mobile.erb → agents.html+phone.erb} +1 -1
- data/app/views/layouts/agents.html.erb +2 -2
- data/app/views/layouts/{manifestations.mobile.erb → manifestations.html+phone.erb} +1 -1
- data/app/views/layouts/manifestations.html.erb +2 -2
- data/app/views/licenses/index.html.erb +4 -4
- data/app/views/manifestation_relationship_types/index.html.erb +4 -4
- data/app/views/manifestations/_attachment_file.html.erb +1 -1
- data/app/views/manifestations/_carrier_type_facet.html.erb +1 -1
- data/app/views/manifestations/_classification_facet.html.erb +2 -2
- data/app/views/manifestations/_contributor_fields.html.erb +4 -0
- data/app/views/manifestations/_creator_fields.html.erb +5 -0
- data/app/views/manifestations/_edit_detail.html.erb +1 -1
- data/app/views/manifestations/_export_list.html.erb +3 -3
- data/app/views/manifestations/_form.html.erb +25 -30
- data/app/views/manifestations/_holding.html.erb +6 -8
- data/app/views/manifestations/_identifier_fields.html.erb +5 -0
- data/app/views/manifestations/_index_form_contributor.html.erb +2 -2
- data/app/views/manifestations/_index_form_creator.html.erb +2 -2
- data/app/views/manifestations/_index_form_item.html.erb +2 -2
- data/app/views/manifestations/_index_form_manifestation.html.erb +2 -2
- data/app/views/manifestations/_index_form_parent.html.erb +1 -1
- data/app/views/manifestations/_index_form_publisher.html.erb +2 -2
- data/app/views/manifestations/_index_form_series_statement.html.erb +2 -2
- data/app/views/manifestations/_language_facet.html.erb +1 -1
- data/app/views/manifestations/_library_facet.html.erb +1 -1
- data/app/views/manifestations/_manifestation.html.erb +6 -2
- data/app/views/manifestations/_manifestation.txt.erb +1 -1
- data/app/views/manifestations/_paginate_id_store.html.erb +8 -6
- data/app/views/manifestations/_pub_year_facet.html.erb +1 -1
- data/app/views/manifestations/_publisher_fields.html.erb +4 -0
- data/app/views/manifestations/_reservable_facet.html.erb +2 -2
- data/app/views/manifestations/_series_statement_fields.html.erb +13 -0
- data/app/views/manifestations/_show.rdf.builder +3 -87
- data/app/views/manifestations/{_show_creators.mobile.erb → _show_creators.html+phone.erb} +0 -0
- data/app/views/manifestations/_show_creators.html.erb +0 -1
- data/app/views/manifestations/_show_detail_librarian.html.erb +20 -22
- data/app/views/manifestations/_show_detail_user.html.erb +13 -15
- data/app/views/manifestations/{_show_holding.mobile.erb → _show_holding.html+phone.erb} +0 -0
- data/app/views/manifestations/_show_holding.html.erb +1 -1
- data/app/views/manifestations/{_show_index.mobile.erb → _show_index.html+phone.erb} +0 -0
- data/app/views/manifestations/_submenu_parent.html.erb +3 -3
- data/app/views/manifestations/{_title.mobile.erb → _title.html+phone.erb} +0 -0
- data/app/views/manifestations/edit.html.erb +2 -6
- data/app/views/manifestations/{index.mobile.erb → index.html+phone.erb} +0 -0
- data/app/views/manifestations/index.html.erb +40 -24
- data/app/views/manifestations/index.rdf.builder +5 -3
- data/app/views/manifestations/index.rss.builder +2 -2
- data/app/views/manifestations/index.txt.erb +1 -2
- data/app/views/manifestations/{show.mobile.erb → show.html+phone.erb} +1 -1
- data/app/views/manifestations/show.html.erb +1 -1
- data/app/views/manifestations/show.txt.erb +1 -2
- data/app/views/medium_of_performances/index.html.erb +4 -4
- data/app/views/owns/index.html.erb +2 -2
- data/app/views/picture_files/_index.html.erb +3 -3
- data/app/views/picture_files/_index_agent.html.erb +4 -4
- data/app/views/picture_files/_index_manifestation.html.erb +4 -4
- data/app/views/picture_files/{_link.mobile.erb → _link.html+phone.erb} +0 -0
- data/app/views/picture_files/{show.mobile.erb → show.html+phone.erb} +0 -0
- data/app/views/produce_types/index.html.erb +4 -4
- data/app/views/produces/_index.html.erb +2 -2
- data/app/views/produces/_index_agent.html.erb +2 -2
- data/app/views/produces/_index_manifestation.html.erb +2 -2
- data/app/views/realize_types/index.html.erb +4 -4
- data/app/views/realizes/_index.html.erb +2 -2
- data/app/views/realizes/_index_agent.html.erb +2 -2
- data/app/views/realizes/_index_expression.html.erb +2 -2
- data/app/views/series_statement_merges/show.html.erb +0 -2
- data/app/views/series_statements/_index.html.erb +4 -4
- data/app/views/series_statements/_index_series_statement_merge_list.html.erb +2 -2
- data/app/views/series_statements/show.html.erb +1 -1
- data/config/locales/translation_en.yml +13 -0
- data/config/locales/translation_ja.yml +13 -0
- data/config/routes.rb +3 -43
- data/lib/enju_biblio/engine.rb +0 -1
- data/lib/enju_biblio/version.rb +1 -1
- data/lib/enju_biblio.rb +0 -107
- data/lib/tasks/enju_biblio_tasks.rake +1 -1
- data/spec/cassette_library/ImportRequest/import/should_import_bibliographic_record.yml +43 -43
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_isbn_which_is_already_imported/redirects_to_the_created_import_request.yml +45 -45
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml +50 -50
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/redirects_to_the_created_import_request.yml +44 -44
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml +48 -48
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/redirects_to_the_created_import_request.yml +41 -41
- data/spec/cassette_library/ResourceImportFile/should_import_in_background.yml +50 -50
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/ISBN_import/with_record_not_found/should_record_an_error_message.yml +49 -49
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_has_only_isbn/should_be_imported.yml +45 -45
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_shift_jis/should_be_imported.yml +50 -50
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_be_imported.yml +48 -48
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_be_searchable_right_after_the_import.yml +512 -0
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_send_message_when_import_is_completed.yml +42 -42
- data/spec/controllers/agent_import_files_controller_spec.rb +5 -5
- data/spec/controllers/agent_import_results_controller_spec.rb +3 -3
- data/spec/controllers/agent_merge_lists_controller_spec.rb +9 -9
- data/spec/controllers/agent_merges_controller_spec.rb +9 -9
- data/spec/controllers/agent_relationship_types_controller_spec.rb +14 -14
- data/spec/controllers/agent_relationships_controller_spec.rb +9 -9
- data/spec/controllers/agent_types_controller_spec.rb +2 -2
- data/spec/controllers/agents_controller_spec.rb +8 -8
- data/spec/controllers/carrier_types_controller_spec.rb +1 -1
- data/spec/controllers/content_types_controller_spec.rb +1 -1
- data/spec/controllers/countries_controller_spec.rb +10 -10
- data/spec/controllers/create_types_controller_spec.rb +2 -2
- data/spec/controllers/creates_controller_spec.rb +7 -7
- data/spec/controllers/donates_controller_spec.rb +9 -9
- data/spec/controllers/form_of_works_controller_spec.rb +2 -2
- data/spec/controllers/frequencies_controller_spec.rb +2 -2
- data/spec/controllers/identifier_types_controller_spec.rb +2 -2
- data/spec/controllers/import_requests_controller_spec.rb +9 -9
- data/spec/controllers/items_controller_spec.rb +13 -7
- data/spec/controllers/languages_controller_spec.rb +8 -8
- data/spec/controllers/licenses_controller_spec.rb +2 -2
- data/spec/controllers/manifestation_relationship_types_controller_spec.rb +10 -10
- data/spec/controllers/manifestation_relationships_controller_spec.rb +9 -9
- data/spec/controllers/manifestations_controller_spec.rb +86 -12
- data/spec/controllers/medium_of_performances_controller_spec.rb +2 -2
- data/spec/controllers/owns_controller_spec.rb +7 -7
- data/spec/controllers/picture_files_controller_spec.rb +9 -9
- data/spec/controllers/produce_types_controller_spec.rb +2 -2
- data/spec/controllers/produces_controller_spec.rb +7 -7
- data/spec/controllers/realize_types_controller_spec.rb +2 -2
- data/spec/controllers/realizes_controller_spec.rb +7 -7
- data/spec/controllers/resource_export_files_controller_spec.rb +9 -15
- data/spec/controllers/resource_import_files_controller_spec.rb +7 -7
- data/spec/controllers/resource_import_results_controller_spec.rb +3 -3
- data/spec/controllers/series_statement_merge_lists_controller_spec.rb +9 -9
- data/spec/controllers/series_statement_merges_controller_spec.rb +9 -9
- data/spec/controllers/series_statements_controller_spec.rb +7 -7
- data/spec/dummy/app/assets/javascripts/application.js +0 -2
- data/spec/dummy/app/controllers/application_controller.rb +10 -6
- data/spec/dummy/app/models/user.rb +4 -4
- data/spec/dummy/config/application.rb +13 -41
- data/spec/dummy/config/environments/development.rb +22 -18
- data/spec/dummy/config/environments/production.rb +46 -34
- data/spec/dummy/config/environments/test.rb +19 -14
- data/spec/dummy/config/initializers/assets.rb +1 -1
- data/spec/dummy/config/initializers/enju_leaf.rb +8 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/db/migrate/20150924115059_create_withdraws.rb +13 -0
- data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +13 -0
- data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +9 -0
- data/spec/dummy/db/schema.rb +27 -2
- data/spec/factories/classification_type.rb +5 -0
- data/spec/factories/reserve.rb +12 -0
- data/spec/factories/role.rb +9 -0
- data/spec/factories/subject.rb +7 -0
- data/spec/factories/subject_heading_type.rb +5 -0
- data/spec/factories/subject_heading_type_has_subject.rb +6 -0
- data/spec/factories/subject_type.rb +5 -0
- data/spec/fixtures/checked_items.yml +4 -4
- data/spec/fixtures/checkouts.yml +12 -12
- data/spec/fixtures/classification_types.yml +1 -1
- data/spec/fixtures/classifications.yml +1 -0
- data/spec/fixtures/manifestations.yml +4 -4
- data/spec/fixtures/reserves.yml +16 -16
- data/spec/fixtures/subjects.yml +79 -0
- data/spec/models/agent_import_file_spec.rb +1 -1
- data/spec/models/manifestation_spec.rb +27 -13
- data/spec/models/resource_export_file_spec.rb +15 -2
- data/spec/models/resource_import_file_spec.rb +29 -9
- data/spec/models/series_statement_merge_list_spec.rb +1 -1
- data/spec/policies/manifestation_policy_spec.rb +24 -0
- data/spec/rails_helper.rb +82 -0
- data/spec/spec_helper.rb +81 -56
- data/spec/support/devise.rb +2 -2
- data/spec/support/vcr.rb +8 -0
- data/spec/views/agent_types/index.html.erb_spec.rb +2 -1
- data/spec/views/agent_types/show.html.erb_spec.rb +1 -0
- data/spec/views/create_types/index.html.erb_spec.rb +2 -1
- data/spec/views/creates/edit.html.erb_spec.rb +0 -3
- data/spec/views/creates/index.html.erb_spec.rb +2 -4
- data/spec/views/creates/new.html.erb_spec.rb +0 -3
- data/spec/views/creates/show.html.erb_spec.rb +0 -3
- data/spec/views/import_requests/index.html.erb_spec.rb +3 -2
- data/spec/views/manifestations/index.html.erb_spec.rb +25 -0
- data/spec/views/manifestations/index.rdf.builder_spec.rb +23 -0
- data/spec/views/manifestations/index.txt.erb_spec.rb +17 -0
- data/spec/views/manifestations/show.html.erb_spec.rb +2 -3
- data/spec/views/manifestations/show.txt.erb_spec.rb +16 -0
- data/spec/views/owns/edit.html.erb_spec.rb +0 -3
- data/spec/views/owns/index.html.erb_spec.rb +2 -4
- data/spec/views/owns/new.html.erb_spec.rb +0 -3
- data/spec/views/owns/show.html.erb_spec.rb +0 -3
- data/spec/views/produce_types/index.html.erb_spec.rb +2 -1
- data/spec/views/produces/edit.html.erb_spec.rb +0 -3
- data/spec/views/produces/index.html.erb_spec.rb +2 -4
- data/spec/views/produces/new.html.erb_spec.rb +0 -3
- data/spec/views/produces/show.html.erb_spec.rb +0 -3
- data/spec/views/realize_types/index.html.erb_spec.rb +2 -1
- data/spec/views/realizes/edit.html.erb_spec.rb +0 -3
- data/spec/views/realizes/index.html.erb_spec.rb +2 -4
- data/spec/views/realizes/new.html.erb_spec.rb +0 -3
- data/spec/views/realizes/show.html.erb_spec.rb +0 -3
- data/spec/views/resource_import_files/index.html.erb_spec.rb +0 -3
- data/spec/views/resource_import_files/{show.html.erb_spec.erb → show.html.erb_spec.rb} +0 -3
- data/spec/views/resource_import_results/index.html.erb_spec.rb +0 -3
- data/spec/views/resource_import_results/{show.html.erb_spec.erb → show.html.erb_spec.rb} +1 -4
- data/spec/views/series_statement_merge_lists/index.html.erb_spec.rb +1 -1
- data/spec/views/series_statement_merges/edit.html.erb_spec.rb +0 -3
- data/spec/views/series_statement_merges/index.html.erb_spec.rb +0 -3
- data/spec/views/series_statement_merges/new.html.erb_spec.rb +0 -3
- data/spec/views/series_statement_merges/show.html.erb_spec.rb +0 -3
- metadata +170 -131
- data/app/models/enju_biblio/ability.rb +0 -238
- data/app/workers/agent_import_file_queue.rb +0 -7
- data/app/workers/resource_export_file_queue.rb +0 -7
- data/app/workers/resource_import_file_queue.rb +0 -7
- data/spec/dummy/config/application.yml +0 -42
@@ -19,28 +19,28 @@ http_interactions:
|
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
21
|
Date:
|
22
|
-
-
|
22
|
+
- Fri, 08 Jan 2016 17:45:33 GMT
|
23
23
|
X-Ua-Compatible:
|
24
24
|
- IE=Edge,chrome=1
|
25
|
-
Etag:
|
26
|
-
- '"2050ced6e3b9988f998ff109f46ce7a6"'
|
27
25
|
Cache-Control:
|
28
26
|
- max-age=0, private, must-revalidate
|
29
27
|
X-Runtime:
|
30
|
-
- '0.
|
28
|
+
- '0.135450'
|
29
|
+
Etag:
|
30
|
+
- '"e9227be71e70e054723f00e5ae1bfe19"'
|
31
31
|
Status:
|
32
32
|
- '200'
|
33
33
|
Content-Type:
|
34
34
|
- application/xml; charset=utf-8
|
35
35
|
Set-Cookie:
|
36
|
-
- ROUTEID=.
|
37
|
-
- TS01cb7804=
|
36
|
+
- ROUTEID=.ps19; path=/
|
37
|
+
- TS01cb7804=011338590a4ea8503e00b2d26067b59ec3d7c84beb9e7f5e5b13841dcf28f4a20faa98a1033717b1074f773bec0d8e4fd7c6703825;
|
38
38
|
path=/; domain=.iss.ndl.go.jp
|
39
|
-
- TS01f3cfdf=
|
39
|
+
- TS01f3cfdf=011338590a9644b85415f6899de8fe2891b7751b9cf1333eb49958c02cb7a1f5567a9aa614aae37cae2addbf26e2c2099573cbde18723b71cb021256263fc4907311de290934cef7f90ec417c8d1c461c3d42350b7;
|
40
40
|
Path=/
|
41
|
-
- _front_session_id=
|
42
|
-
path=/; expires=
|
43
|
-
- ndl.go.jp=
|
41
|
+
- _front_session_id=80d6344c6e18477b93a11e1966b52625; domain=.iss.ndl.go.jp;
|
42
|
+
path=/; expires=Fri, 08-Jan-2016 18:45:33 GMT; HttpOnly
|
43
|
+
- ndl.go.jp=rd2o00000000000000000000ffff0a024f69o80; path=/
|
44
44
|
- serverid=1101; path=/
|
45
45
|
Vary:
|
46
46
|
- Accept-Encoding,User-Agent
|
@@ -49,29 +49,29 @@ http_interactions:
|
|
49
49
|
X-Frame-Options:
|
50
50
|
- SAMEORIGIN
|
51
51
|
Content-Length:
|
52
|
-
- '
|
52
|
+
- '1471'
|
53
53
|
Connection:
|
54
54
|
- close
|
55
55
|
body:
|
56
56
|
encoding: ASCII-8BIT
|
57
57
|
string: !binary |-
|
58
58
|
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJzcyB4
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
59
|
+
bWxuczpkY25kbD0iaHR0cDovL25kbC5nby5qcC9kY25kbC90ZXJtcy8iIHht
|
60
|
+
bG5zOmRjbWl0eXBlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvIiB4
|
61
|
+
bWxuczpvcGVuU2VhcmNoPSJodHRwOi8vYTkuY29tLy0vc3BlYy9vcGVuc2Vh
|
62
|
+
cmNocnNzLzEuMC8iIHhtbG5zOmRjdGVybXM9Imh0dHA6Ly9wdXJsLm9yZy9k
|
63
|
+
Yy90ZXJtcy8iIHhtbG5zOnJkZnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAv
|
64
|
+
MDEvcmRmLXNjaGVtYSMiIHZlcnNpb249IjIuMCIgeG1sbnM6eHNpPSJodHRw
|
65
|
+
Oi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM6
|
66
|
+
ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpy
|
67
|
+
ZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1u
|
68
|
+
cyMiPgogIDxjaGFubmVsPgogICAgPHRpdGxlPjEgOTc4NDc5ODAwMjA2NCBp
|
69
69
|
c3MtbmRsLW9wYWMgLSDlm73nq4vlm73kvJrlm7Pmm7jppKjjgrXjg7zjg4Eg
|
70
70
|
T3BlblNlYXJjaDwvdGl0bGU+CiAgICA8bGluaz5odHRwOi8vaXNzLm5kbC5n
|
71
71
|
by5qcC9hcGkvb3BlbnNlYXJjaD9jbnQ9MTAmYW1wO2lzYm49OTc4NDc5ODAw
|
72
72
|
MjA2NCZhbXA7bWVkaWF0eXBlPTEmYW1wO2RwaWQ9aXNzLW5kbC1vcGFjJmFt
|
73
73
|
cDtpZHg9MTwvbGluaz4KICAgIDxkZXNjcmlwdGlvbj5TZWFyY2ggcmVzdWx0
|
74
|
-
|
74
|
+
cyBmb3IgY250PTEwIG1lZGlhdHlwZT0xIGRwaWQ9aXNzLW5kbC1vcGFjIGlz
|
75
75
|
Ym49OTc4NDc5ODAwMjA2NCA8L2Rlc2NyaXB0aW9uPgogICAgPGxhbmd1YWdl
|
76
76
|
PmphPC9sYW5ndWFnZT4KICAgIDxvcGVuU2VhcmNoOnRvdGFsUmVzdWx0cz4x
|
77
77
|
PC9vcGVuU2VhcmNoOnRvdGFsUmVzdWx0cz4KICAgIDxvcGVuU2VhcmNoOnN0
|
@@ -143,7 +143,7 @@ http_interactions:
|
|
143
143
|
aW5qL29wYWMvc3dpdGNoLWRldGFpbC1pY2NhcC5kbz9iaWJpZD0xMTAwMDM3
|
144
144
|
MTk5Ii8+CiAgICA8L2l0ZW0+CiAgPC9jaGFubmVsPgo8L3Jzcz4K
|
145
145
|
http_version:
|
146
|
-
recorded_at:
|
146
|
+
recorded_at: Fri, 08 Jan 2016 17:45:33 GMT
|
147
147
|
- request:
|
148
148
|
method: get
|
149
149
|
uri: http://iss.ndl.go.jp/books/R100000002-I000003046546-00.rdf
|
@@ -163,28 +163,28 @@ http_interactions:
|
|
163
163
|
message: OK
|
164
164
|
headers:
|
165
165
|
Date:
|
166
|
-
-
|
167
|
-
X-Runtime:
|
168
|
-
- '0.601626'
|
166
|
+
- Fri, 08 Jan 2016 17:45:33 GMT
|
169
167
|
X-Ua-Compatible:
|
170
168
|
- IE=Edge,chrome=1
|
169
|
+
X-Runtime:
|
170
|
+
- '0.479124'
|
171
|
+
Etag:
|
172
|
+
- '"eeb316b1b0b2f10369a1915db57a3b22"'
|
171
173
|
Cache-Control:
|
172
174
|
- max-age=0, private, must-revalidate
|
173
|
-
Etag:
|
174
|
-
- '"62ffd79d069e985fb24f06418251e071"'
|
175
175
|
Status:
|
176
176
|
- '200'
|
177
177
|
Content-Type:
|
178
178
|
- application/rdf+xml; charset=utf-8
|
179
179
|
Set-Cookie:
|
180
|
-
- ROUTEID=.
|
181
|
-
- TS01cb7804=
|
180
|
+
- ROUTEID=.ps20; path=/
|
181
|
+
- TS01cb7804=011338590a16d9f867e775b52a3e0914d4a1274666bb608a38eedc375717b3029d1d4dd01d9725e4e1cd0627bdc30d0dfbf209d018;
|
182
182
|
path=/; domain=.iss.ndl.go.jp
|
183
|
-
- TS01f3cfdf=
|
183
|
+
- TS01f3cfdf=011338590a7e70e2ea37dbd5c1b1781f06b9a66e481e95dbc497cad900240af5660a953effe7298021320c7bf83e39c0b93790ed47822c8329e63425ae6c183cc722b60e77245777d746509d1f4f00d7233ad69ee6;
|
184
184
|
Path=/
|
185
|
-
- _front_session_id=
|
186
|
-
path=/; expires=
|
187
|
-
- ndl.go.jp=
|
185
|
+
- _front_session_id=cc4e951ff262eee52fabc2bd7eebf414; domain=.iss.ndl.go.jp;
|
186
|
+
path=/; expires=Fri, 08-Jan-2016 18:45:33 GMT; HttpOnly
|
187
|
+
- ndl.go.jp=rd2o00000000000000000000ffff0a024f68o80; path=/
|
188
188
|
- serverid=1101; path=/
|
189
189
|
Vary:
|
190
190
|
- Accept-Encoding,User-Agent
|
@@ -201,13 +201,13 @@ http_interactions:
|
|
201
201
|
string: !binary |-
|
202
202
|
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHJkZjpS
|
203
203
|
REYgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEv
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
204
|
+
IiB4bWxuczpkY3Rlcm1zPSJodHRwOi8vcHVybC5vcmcvZGMvdGVybXMvIiB4
|
205
|
+
bWxuczpmb2FmPSJodHRwOi8veG1sbnMuY29tL2ZvYWYvMC4xLyIgeG1sbnM6
|
206
|
+
cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgt
|
207
|
+
bnMjIiB4bWxuczpyZGZzPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzAxL3Jk
|
208
|
+
Zi1zY2hlbWEjIiB4bWxuczpkY25kbD0iaHR0cDovL25kbC5nby5qcC9kY25k
|
209
|
+
bC90ZXJtcy8iIHhtbG5zOm93bD0iaHR0cDovL3d3dy53My5vcmcvMjAwMi8w
|
210
|
+
Ny9vd2wjIj4KICA8ZGNuZGw6QmliQWRtaW5SZXNvdXJjZSByZGY6YWJvdXQ9
|
211
211
|
Imh0dHA6Ly9pc3MubmRsLmdvLmpwL2Jvb2tzL1IxMDAwMDAwMDItSTAwMDAw
|
212
212
|
MzA0NjU0Ni0wMCI+CiAgICA8ZGNuZGw6Y2F0YWxvZ2luZ1N0YXR1cz5DNzwv
|
213
213
|
ZGNuZGw6Y2F0YWxvZ2luZ1N0YXR1cz4KICAgIDxkY25kbDpiaWJSZWNvcmRD
|
@@ -508,5 +508,5 @@ http_interactions:
|
|
508
508
|
ruWgtOaJgCA6IO+8ou+8kuabuOW6q++8rTwvZGN0ZXJtczpkZXNjcmlwdGlv
|
509
509
|
bj4KICA8L2RjbmRsOkl0ZW0+CjwvcmRmOlJERj4=
|
510
510
|
http_version:
|
511
|
-
recorded_at:
|
511
|
+
recorded_at: Fri, 08 Jan 2016 17:45:33 GMT
|
512
512
|
recorded_with: VCR 3.0.1
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
require '
|
2
|
+
require 'rails_helper'
|
3
3
|
|
4
4
|
describe AgentImportFilesController do
|
5
5
|
fixtures :all
|
@@ -28,7 +28,7 @@ describe AgentImportFilesController do
|
|
28
28
|
|
29
29
|
it "assigns empty as @agent_import_files" do
|
30
30
|
get :index
|
31
|
-
expect(assigns(:agent_import_files)).to
|
31
|
+
expect(assigns(:agent_import_files)).to be_nil
|
32
32
|
expect(response).to be_forbidden
|
33
33
|
end
|
34
34
|
end
|
@@ -36,7 +36,7 @@ describe AgentImportFilesController do
|
|
36
36
|
describe "When not logged in" do
|
37
37
|
it "assigns empty as @agent_import_files" do
|
38
38
|
get :index
|
39
|
-
expect(assigns(:agent_import_files)).to
|
39
|
+
expect(assigns(:agent_import_files)).to be_nil
|
40
40
|
expect(response).to redirect_to(new_user_session_url)
|
41
41
|
end
|
42
42
|
end
|
@@ -105,7 +105,7 @@ describe AgentImportFilesController do
|
|
105
105
|
|
106
106
|
it "should not assign the requested agent_import_file as @agent_import_file" do
|
107
107
|
get :new
|
108
|
-
expect(assigns(:agent_import_file)).
|
108
|
+
expect(assigns(:agent_import_file)).to be_nil
|
109
109
|
expect(response).to be_forbidden
|
110
110
|
end
|
111
111
|
end
|
@@ -113,7 +113,7 @@ describe AgentImportFilesController do
|
|
113
113
|
describe "When not logged in" do
|
114
114
|
it "should not assign the requested agent_import_file as @agent_import_file" do
|
115
115
|
get :new
|
116
|
-
expect(assigns(:agent_import_file)).
|
116
|
+
expect(assigns(:agent_import_file)).to be_nil
|
117
117
|
expect(response).to redirect_to(new_user_session_url)
|
118
118
|
end
|
119
119
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
require '
|
2
|
+
require 'rails_helper'
|
3
3
|
|
4
4
|
describe AgentImportResultsController do
|
5
5
|
fixtures :all
|
@@ -28,7 +28,7 @@ describe AgentImportResultsController do
|
|
28
28
|
|
29
29
|
it "assigns empty as @agent_import_results" do
|
30
30
|
get :index
|
31
|
-
expect(assigns(:agent_import_results)).to
|
31
|
+
expect(assigns(:agent_import_results)).to be_nil
|
32
32
|
expect(response).to be_forbidden
|
33
33
|
end
|
34
34
|
end
|
@@ -36,7 +36,7 @@ describe AgentImportResultsController do
|
|
36
36
|
describe "When not logged in" do
|
37
37
|
it "assigns empty as @agent_import_results" do
|
38
38
|
get :index
|
39
|
-
expect(assigns(:agent_import_results)).to
|
39
|
+
expect(assigns(:agent_import_results)).to be_nil
|
40
40
|
expect(response).to redirect_to(new_user_session_url)
|
41
41
|
end
|
42
42
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'rails_helper'
|
2
2
|
require 'sunspot/rails/spec_helper'
|
3
3
|
|
4
4
|
describe AgentMergeListsController do
|
@@ -29,14 +29,14 @@ describe AgentMergeListsController do
|
|
29
29
|
|
30
30
|
it "assigns empty as @agent_merge_lists" do
|
31
31
|
get :index
|
32
|
-
assigns(:agent_merge_lists).should
|
32
|
+
assigns(:agent_merge_lists).should be_nil
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
36
|
describe "When not logged in" do
|
37
37
|
it "assigns empty as @agent_merge_lists" do
|
38
38
|
get :index
|
39
|
-
assigns(:agent_merge_lists).should
|
39
|
+
assigns(:agent_merge_lists).should be_nil
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
@@ -109,7 +109,7 @@ describe AgentMergeListsController do
|
|
109
109
|
|
110
110
|
it "should not assign the requested agent_merge_list as @agent_merge_list" do
|
111
111
|
get :new
|
112
|
-
assigns(:agent_merge_list).
|
112
|
+
assigns(:agent_merge_list).should be_nil
|
113
113
|
response.should be_forbidden
|
114
114
|
end
|
115
115
|
end
|
@@ -117,7 +117,7 @@ describe AgentMergeListsController do
|
|
117
117
|
describe "When not logged in" do
|
118
118
|
it "should not assign the requested agent_merge_list as @agent_merge_list" do
|
119
119
|
get :new
|
120
|
-
assigns(:agent_merge_list).
|
120
|
+
assigns(:agent_merge_list).should be_nil
|
121
121
|
response.should redirect_to(new_user_session_url)
|
122
122
|
end
|
123
123
|
end
|
@@ -231,7 +231,7 @@ describe AgentMergeListsController do
|
|
231
231
|
describe "with valid params" do
|
232
232
|
it "assigns a newly created agent_merge_list as @agent_merge_list" do
|
233
233
|
post :create, :agent_merge_list => @attrs
|
234
|
-
assigns(:agent_merge_list).should
|
234
|
+
assigns(:agent_merge_list).should be_nil
|
235
235
|
end
|
236
236
|
|
237
237
|
it "should be forbidden" do
|
@@ -243,7 +243,7 @@ describe AgentMergeListsController do
|
|
243
243
|
describe "with invalid params" do
|
244
244
|
it "assigns a newly created but unsaved agent_merge_list as @agent_merge_list" do
|
245
245
|
post :create, :agent_merge_list => @invalid_attrs
|
246
|
-
assigns(:agent_merge_list).
|
246
|
+
assigns(:agent_merge_list).should be_nil
|
247
247
|
end
|
248
248
|
|
249
249
|
it "should be forbidden" do
|
@@ -257,7 +257,7 @@ describe AgentMergeListsController do
|
|
257
257
|
describe "with valid params" do
|
258
258
|
it "assigns a newly created agent_merge_list as @agent_merge_list" do
|
259
259
|
post :create, :agent_merge_list => @attrs
|
260
|
-
assigns(:agent_merge_list).should
|
260
|
+
assigns(:agent_merge_list).should be_nil
|
261
261
|
end
|
262
262
|
|
263
263
|
it "should be forbidden" do
|
@@ -269,7 +269,7 @@ describe AgentMergeListsController do
|
|
269
269
|
describe "with invalid params" do
|
270
270
|
it "assigns a newly created but unsaved agent_merge_list as @agent_merge_list" do
|
271
271
|
post :create, :agent_merge_list => @invalid_attrs
|
272
|
-
assigns(:agent_merge_list).
|
272
|
+
assigns(:agent_merge_list).should be_nil
|
273
273
|
end
|
274
274
|
|
275
275
|
it "should be forbidden" do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'rails_helper'
|
2
2
|
|
3
3
|
describe AgentMergesController do
|
4
4
|
fixtures :all
|
@@ -31,7 +31,7 @@ describe AgentMergesController do
|
|
31
31
|
|
32
32
|
it "should be forbidden" do
|
33
33
|
get :index
|
34
|
-
assigns(:agent_merges).should
|
34
|
+
assigns(:agent_merges).should be_nil
|
35
35
|
response.should be_forbidden
|
36
36
|
end
|
37
37
|
end
|
@@ -39,7 +39,7 @@ describe AgentMergesController do
|
|
39
39
|
describe "When not logged in" do
|
40
40
|
it "should be forbidden" do
|
41
41
|
get :index
|
42
|
-
assigns(:agent_merges).should
|
42
|
+
assigns(:agent_merges).should be_nil
|
43
43
|
response.should redirect_to(new_user_session_url)
|
44
44
|
end
|
45
45
|
end
|
@@ -111,7 +111,7 @@ describe AgentMergesController do
|
|
111
111
|
|
112
112
|
it "should not assign the requested agent_merge as @agent_merge" do
|
113
113
|
get :new
|
114
|
-
assigns(:agent_merge).
|
114
|
+
assigns(:agent_merge).should be_nil
|
115
115
|
response.should be_forbidden
|
116
116
|
end
|
117
117
|
end
|
@@ -119,7 +119,7 @@ describe AgentMergesController do
|
|
119
119
|
describe "When not logged in" do
|
120
120
|
it "should not assign the requested agent_merge as @agent_merge" do
|
121
121
|
get :new
|
122
|
-
assigns(:agent_merge).
|
122
|
+
assigns(:agent_merge).should be_nil
|
123
123
|
response.should redirect_to(new_user_session_url)
|
124
124
|
end
|
125
125
|
end
|
@@ -233,7 +233,7 @@ describe AgentMergesController do
|
|
233
233
|
describe "with valid params" do
|
234
234
|
it "assigns a newly created agent_merge as @agent_merge" do
|
235
235
|
post :create, :agent_merge => @attrs
|
236
|
-
assigns(:agent_merge).should
|
236
|
+
assigns(:agent_merge).should be_nil
|
237
237
|
end
|
238
238
|
|
239
239
|
it "should be forbidden" do
|
@@ -245,7 +245,7 @@ describe AgentMergesController do
|
|
245
245
|
describe "with invalid params" do
|
246
246
|
it "assigns a newly created but unsaved agent_merge as @agent_merge" do
|
247
247
|
post :create, :agent_merge => @invalid_attrs
|
248
|
-
assigns(:agent_merge).
|
248
|
+
assigns(:agent_merge).should be_nil
|
249
249
|
end
|
250
250
|
|
251
251
|
it "should be forbidden" do
|
@@ -259,7 +259,7 @@ describe AgentMergesController do
|
|
259
259
|
describe "with valid params" do
|
260
260
|
it "assigns a newly created agent_merge as @agent_merge" do
|
261
261
|
post :create, :agent_merge => @attrs
|
262
|
-
assigns(:agent_merge).should
|
262
|
+
assigns(:agent_merge).should be_nil
|
263
263
|
end
|
264
264
|
|
265
265
|
it "should be forbidden" do
|
@@ -271,7 +271,7 @@ describe AgentMergesController do
|
|
271
271
|
describe "with invalid params" do
|
272
272
|
it "assigns a newly created but unsaved agent_merge as @agent_merge" do
|
273
273
|
post :create, :agent_merge => @invalid_attrs
|
274
|
-
assigns(:agent_merge).
|
274
|
+
assigns(:agent_merge).should be_nil
|
275
275
|
end
|
276
276
|
|
277
277
|
it "should be forbidden" do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'rails_helper'
|
2
2
|
require 'sunspot/rails/spec_helper'
|
3
3
|
|
4
4
|
describe AgentRelationshipTypesController do
|
@@ -19,7 +19,7 @@ describe AgentRelationshipTypesController do
|
|
19
19
|
|
20
20
|
it "assigns all agent_relationship_types as @agent_relationship_types" do
|
21
21
|
get :index
|
22
|
-
expect(assigns(:agent_relationship_types)).to eq(AgentRelationshipType.
|
22
|
+
expect(assigns(:agent_relationship_types)).to eq(AgentRelationshipType.order(:position))
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
@@ -28,7 +28,7 @@ describe AgentRelationshipTypesController do
|
|
28
28
|
|
29
29
|
it "assigns all agent_relationship_types as @agent_relationship_types" do
|
30
30
|
get :index
|
31
|
-
expect(assigns(:agent_relationship_types)).to eq(AgentRelationshipType.
|
31
|
+
expect(assigns(:agent_relationship_types)).to eq(AgentRelationshipType.order(:position))
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -37,14 +37,14 @@ describe AgentRelationshipTypesController do
|
|
37
37
|
|
38
38
|
it "assigns all agent_relationship_types as @agent_relationship_types" do
|
39
39
|
get :index
|
40
|
-
expect(assigns(:agent_relationship_types)).to eq(AgentRelationshipType.
|
40
|
+
expect(assigns(:agent_relationship_types)).to eq(AgentRelationshipType.order(:position))
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
44
|
describe "When not logged in" do
|
45
45
|
it "assigns all agent_relationship_types as @agent_relationship_types" do
|
46
46
|
get :index
|
47
|
-
expect(assigns(:agent_relationship_types)).to eq(AgentRelationshipType.
|
47
|
+
expect(assigns(:agent_relationship_types)).to eq(AgentRelationshipType.order(:position))
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
@@ -105,7 +105,7 @@ describe AgentRelationshipTypesController do
|
|
105
105
|
|
106
106
|
it "should not assign the requested agent_relationship_type as @agent_relationship_type" do
|
107
107
|
get :new
|
108
|
-
expect(assigns(:agent_relationship_type)).
|
108
|
+
expect(assigns(:agent_relationship_type)).to be_nil
|
109
109
|
expect(response).to be_forbidden
|
110
110
|
end
|
111
111
|
end
|
@@ -115,7 +115,7 @@ describe AgentRelationshipTypesController do
|
|
115
115
|
|
116
116
|
it "should not assign the requested agent_relationship_type as @agent_relationship_type" do
|
117
117
|
get :new
|
118
|
-
expect(assigns(:agent_relationship_type)).
|
118
|
+
expect(assigns(:agent_relationship_type)).to be_nil
|
119
119
|
expect(response).to be_forbidden
|
120
120
|
end
|
121
121
|
end
|
@@ -123,7 +123,7 @@ describe AgentRelationshipTypesController do
|
|
123
123
|
describe "When not logged in" do
|
124
124
|
it "should not assign the requested agent_relationship_type as @agent_relationship_type" do
|
125
125
|
get :new
|
126
|
-
expect(assigns(:agent_relationship_type)).
|
126
|
+
expect(assigns(:agent_relationship_type)).to be_nil
|
127
127
|
expect(response).to redirect_to(new_user_session_url)
|
128
128
|
end
|
129
129
|
end
|
@@ -209,7 +209,7 @@ describe AgentRelationshipTypesController do
|
|
209
209
|
describe "with valid params" do
|
210
210
|
it "assigns a newly created agent_relationship_type as @agent_relationship_type" do
|
211
211
|
post :create, :agent_relationship_type => @attrs
|
212
|
-
expect(assigns(:agent_relationship_type)).to
|
212
|
+
expect(assigns(:agent_relationship_type)).to be_nil
|
213
213
|
end
|
214
214
|
|
215
215
|
it "should be forbidden" do
|
@@ -221,7 +221,7 @@ describe AgentRelationshipTypesController do
|
|
221
221
|
describe "with invalid params" do
|
222
222
|
it "assigns a newly created but unsaved agent_relationship_type as @agent_relationship_type" do
|
223
223
|
post :create, :agent_relationship_type => @invalid_attrs
|
224
|
-
expect(assigns(:agent_relationship_type)).
|
224
|
+
expect(assigns(:agent_relationship_type)).to be_nil
|
225
225
|
end
|
226
226
|
|
227
227
|
it "should be forbidden" do
|
@@ -237,7 +237,7 @@ describe AgentRelationshipTypesController do
|
|
237
237
|
describe "with valid params" do
|
238
238
|
it "assigns a newly created agent_relationship_type as @agent_relationship_type" do
|
239
239
|
post :create, :agent_relationship_type => @attrs
|
240
|
-
expect(assigns(:agent_relationship_type)).to
|
240
|
+
expect(assigns(:agent_relationship_type)).to be_nil
|
241
241
|
end
|
242
242
|
|
243
243
|
it "should be forbidden" do
|
@@ -249,7 +249,7 @@ describe AgentRelationshipTypesController do
|
|
249
249
|
describe "with invalid params" do
|
250
250
|
it "assigns a newly created but unsaved agent_relationship_type as @agent_relationship_type" do
|
251
251
|
post :create, :agent_relationship_type => @invalid_attrs
|
252
|
-
expect(assigns(:agent_relationship_type)).
|
252
|
+
expect(assigns(:agent_relationship_type)).to be_nil
|
253
253
|
end
|
254
254
|
|
255
255
|
it "should be forbidden" do
|
@@ -263,7 +263,7 @@ describe AgentRelationshipTypesController do
|
|
263
263
|
describe "with valid params" do
|
264
264
|
it "assigns a newly created agent_relationship_type as @agent_relationship_type" do
|
265
265
|
post :create, :agent_relationship_type => @attrs
|
266
|
-
expect(assigns(:agent_relationship_type)).to
|
266
|
+
expect(assigns(:agent_relationship_type)).to be_nil
|
267
267
|
end
|
268
268
|
|
269
269
|
it "should be forbidden" do
|
@@ -275,7 +275,7 @@ describe AgentRelationshipTypesController do
|
|
275
275
|
describe "with invalid params" do
|
276
276
|
it "assigns a newly created but unsaved agent_relationship_type as @agent_relationship_type" do
|
277
277
|
post :create, :agent_relationship_type => @invalid_attrs
|
278
|
-
expect(assigns(:agent_relationship_type)).
|
278
|
+
expect(assigns(:agent_relationship_type)).to be_nil
|
279
279
|
end
|
280
280
|
|
281
281
|
it "should be forbidden" do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'rails_helper'
|
2
2
|
require 'sunspot/rails/spec_helper'
|
3
3
|
|
4
4
|
describe AgentRelationshipsController do
|
@@ -95,7 +95,7 @@ describe AgentRelationshipsController do
|
|
95
95
|
|
96
96
|
it "assigns the requested agent_relationship as @agent_relationship" do
|
97
97
|
get :new
|
98
|
-
expect(assigns(:agent_relationship)).
|
98
|
+
expect(assigns(:agent_relationship)).to be_nil
|
99
99
|
expect(response).to redirect_to agents_url
|
100
100
|
end
|
101
101
|
end
|
@@ -105,7 +105,7 @@ describe AgentRelationshipsController do
|
|
105
105
|
|
106
106
|
it "should not assign the requested agent_relationship as @agent_relationship" do
|
107
107
|
get :new
|
108
|
-
expect(assigns(:agent_relationship)).
|
108
|
+
expect(assigns(:agent_relationship)).to be_nil
|
109
109
|
expect(response).to redirect_to agents_url
|
110
110
|
end
|
111
111
|
end
|
@@ -115,7 +115,7 @@ describe AgentRelationshipsController do
|
|
115
115
|
|
116
116
|
it "should not assign the requested agent_relationship as @agent_relationship" do
|
117
117
|
get :new
|
118
|
-
expect(assigns(:agent_relationship)).
|
118
|
+
expect(assigns(:agent_relationship)).to be_nil
|
119
119
|
expect(response).to be_forbidden
|
120
120
|
end
|
121
121
|
end
|
@@ -123,7 +123,7 @@ describe AgentRelationshipsController do
|
|
123
123
|
describe "When not logged in" do
|
124
124
|
it "should not assign the requested agent_relationship as @agent_relationship" do
|
125
125
|
get :new
|
126
|
-
expect(assigns(:agent_relationship)).
|
126
|
+
expect(assigns(:agent_relationship)).to be_nil
|
127
127
|
expect(response).to redirect_to(new_user_session_url)
|
128
128
|
end
|
129
129
|
end
|
@@ -237,7 +237,7 @@ describe AgentRelationshipsController do
|
|
237
237
|
describe "with valid params" do
|
238
238
|
it "assigns a newly created agent_relationship as @agent_relationship" do
|
239
239
|
post :create, :agent_relationship => @attrs
|
240
|
-
expect(assigns(:agent_relationship)).to
|
240
|
+
expect(assigns(:agent_relationship)).to be_nil
|
241
241
|
end
|
242
242
|
|
243
243
|
it "should be forbidden" do
|
@@ -249,7 +249,7 @@ describe AgentRelationshipsController do
|
|
249
249
|
describe "with invalid params" do
|
250
250
|
it "assigns a newly created but unsaved agent_relationship as @agent_relationship" do
|
251
251
|
post :create, :agent_relationship => @invalid_attrs
|
252
|
-
expect(assigns(:agent_relationship)).
|
252
|
+
expect(assigns(:agent_relationship)).to be_nil
|
253
253
|
end
|
254
254
|
|
255
255
|
it "should be forbidden" do
|
@@ -263,7 +263,7 @@ describe AgentRelationshipsController do
|
|
263
263
|
describe "with valid params" do
|
264
264
|
it "assigns a newly created agent_relationship as @agent_relationship" do
|
265
265
|
post :create, :agent_relationship => @attrs
|
266
|
-
expect(assigns(:agent_relationship)).to
|
266
|
+
expect(assigns(:agent_relationship)).to be_nil
|
267
267
|
end
|
268
268
|
|
269
269
|
it "should be forbidden" do
|
@@ -275,7 +275,7 @@ describe AgentRelationshipsController do
|
|
275
275
|
describe "with invalid params" do
|
276
276
|
it "assigns a newly created but unsaved agent_relationship as @agent_relationship" do
|
277
277
|
post :create, :agent_relationship => @invalid_attrs
|
278
|
-
expect(assigns(:agent_relationship)).
|
278
|
+
expect(assigns(:agent_relationship)).to be_nil
|
279
279
|
end
|
280
280
|
|
281
281
|
it "should be forbidden" do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'rails_helper'
|
2
2
|
|
3
3
|
# This spec was generated by rspec-rails when you ran the scaffold generator.
|
4
4
|
# It demonstrates how one might use RSpec to specify the controller code that
|
@@ -33,7 +33,7 @@ describe AgentTypesController do
|
|
33
33
|
it "assigns all agent_types as @agent_types" do
|
34
34
|
agent_type = AgentType.create! valid_attributes
|
35
35
|
get :index
|
36
|
-
expect(assigns(:agent_types)).to eq(AgentType.
|
36
|
+
expect(assigns(:agent_types)).to eq(AgentType.order(:position))
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'rails_helper'
|
2
2
|
|
3
3
|
describe AgentsController do
|
4
4
|
fixtures :all
|
@@ -117,7 +117,7 @@ describe AgentsController do
|
|
117
117
|
# expect(response).to be_success
|
118
118
|
#end
|
119
119
|
|
120
|
-
#it "should
|
120
|
+
#it "should show patron when required_role is librarian" do
|
121
121
|
# get :show, :id => users(:user1).agent.id
|
122
122
|
# expect(assigns(:agent)).to eq(users(:user1).agent)
|
123
123
|
# expect(response).to be_success
|
@@ -212,7 +212,7 @@ describe AgentsController do
|
|
212
212
|
|
213
213
|
it "should not assign the requested agent as @agent" do
|
214
214
|
get :new
|
215
|
-
expect(assigns(:agent)).
|
215
|
+
expect(assigns(:agent)).to be_nil
|
216
216
|
expect(response).to be_forbidden
|
217
217
|
end
|
218
218
|
end
|
@@ -220,7 +220,7 @@ describe AgentsController do
|
|
220
220
|
describe "When not logged in" do
|
221
221
|
it "should not assign the requested agent as @agent" do
|
222
222
|
get :new
|
223
|
-
expect(assigns(:agent)).
|
223
|
+
expect(assigns(:agent)).to be_nil
|
224
224
|
expect(response).to redirect_to(new_user_session_url)
|
225
225
|
end
|
226
226
|
end
|
@@ -383,7 +383,7 @@ describe AgentsController do
|
|
383
383
|
describe "with valid params" do
|
384
384
|
it "assigns a newly created agent as @agent" do
|
385
385
|
post :create, :agent => @attrs
|
386
|
-
expect(assigns(:agent)).to
|
386
|
+
expect(assigns(:agent)).to be_nil
|
387
387
|
end
|
388
388
|
|
389
389
|
it "should be forbidden" do
|
@@ -395,7 +395,7 @@ describe AgentsController do
|
|
395
395
|
describe "with invalid params" do
|
396
396
|
it "assigns a newly created but unsaved agent as @agent" do
|
397
397
|
post :create, :agent => @invalid_attrs
|
398
|
-
expect(assigns(:agent)).
|
398
|
+
expect(assigns(:agent)).to be_nil
|
399
399
|
end
|
400
400
|
|
401
401
|
it "should be forbidden" do
|
@@ -420,7 +420,7 @@ describe AgentsController do
|
|
420
420
|
describe "with valid params" do
|
421
421
|
it "assigns a newly created agent as @agent" do
|
422
422
|
post :create, :agent => @attrs
|
423
|
-
expect(assigns(:agent)).to
|
423
|
+
expect(assigns(:agent)).to be_nil
|
424
424
|
end
|
425
425
|
|
426
426
|
it "should be forbidden" do
|
@@ -432,7 +432,7 @@ describe AgentsController do
|
|
432
432
|
describe "with invalid params" do
|
433
433
|
it "assigns a newly created but unsaved agent as @agent" do
|
434
434
|
post :create, :agent => @invalid_attrs
|
435
|
-
expect(assigns(:agent)).
|
435
|
+
expect(assigns(:agent)).to be_nil
|
436
436
|
end
|
437
437
|
|
438
438
|
it "should be forbidden" do
|