enju_biblio 0.3.13 → 0.4.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.md +2 -3
- data/app/controllers/agents_controller.rb +6 -0
- data/app/controllers/content_types_controller.rb +1 -1
- data/app/controllers/items_controller.rb +10 -18
- data/app/controllers/manifestations_controller.rb +85 -80
- data/app/controllers/resource_import_results_controller.rb +2 -6
- data/app/controllers/series_statements_controller.rb +6 -0
- data/app/helpers/enju_biblio/application_helper.rb +5 -5
- data/app/helpers/manifestations_helper.rb +12 -12
- data/app/models/agent.rb +4 -13
- data/app/models/agent_import_file.rb +1 -1
- data/app/models/agent_relationship_type.rb +8 -7
- data/app/models/agent_type.rb +10 -7
- data/app/models/carrier_type.rb +14 -11
- data/app/models/content_type.rb +10 -7
- data/app/models/create_type.rb +8 -7
- data/app/models/doi_record.rb +36 -0
- data/app/models/form_of_work.rb +11 -8
- data/app/models/frequency.rb +11 -8
- data/app/models/identifier.rb +1 -1
- data/app/models/identifier_type.rb +1 -0
- data/app/models/import_request.rb +3 -4
- data/app/models/isbn_record.rb +51 -0
- data/app/models/isbn_record_and_manifestation.rb +18 -0
- data/app/models/issn_record.rb +49 -0
- data/app/models/issn_record_and_manifestation.rb +18 -0
- data/app/models/item.rb +7 -55
- data/app/models/language.rb +10 -9
- data/app/models/license.rb +9 -7
- data/app/models/manifestation.rb +271 -158
- data/app/models/manifestation_relationship_type.rb +9 -7
- data/app/models/medium_of_performance.rb +11 -8
- data/app/models/periodical.rb +33 -0
- data/app/models/periodical_and_manifestation.rb +16 -0
- data/app/models/picture_file.rb +2 -0
- data/app/models/produce_type.rb +8 -7
- data/app/models/realize_type.rb +8 -7
- data/app/models/resource_export_file.rb +8 -6
- data/app/models/resource_export_file_state_machine.rb +1 -1
- data/app/models/resource_import_file.rb +62 -153
- data/app/views/agent_import_results/index.txt.erb +3 -0
- data/app/views/agent_relationship_types/index.html.erb +1 -1
- data/app/views/agent_relationship_types/show.html.erb +1 -1
- data/app/views/agent_relationships/_form.html.erb +1 -1
- data/app/views/agent_types/index.html.erb +1 -1
- data/app/views/agent_types/show.html.erb +1 -1
- data/app/views/agents/_agent.html.erb +1 -1
- data/app/views/agents/_agent_list.html.erb +2 -2
- data/app/views/agents/_form.html.erb +4 -4
- data/app/views/agents/_index_agent.html.erb +1 -1
- data/app/views/agents/_index_agent_merge_list.html.erb +1 -1
- data/app/views/agents/_index_expression.html.erb +2 -2
- data/app/views/agents/_index_manifestation.html.erb +2 -2
- data/app/views/agents/_index_work.html.erb +2 -2
- data/app/views/agents/index.atom.builder +1 -1
- data/app/views/agents/index.rss.builder +3 -3
- data/app/views/agents/show.html+phone.erb +2 -2
- data/app/views/agents/show.html.erb +2 -2
- data/app/views/carrier_types/index.html.erb +2 -2
- data/app/views/carrier_types/show.html.erb +3 -3
- data/app/views/content_types/index.html.erb +1 -1
- data/app/views/content_types/show.html.erb +1 -1
- data/app/views/countries/index.html.erb +1 -1
- data/app/views/countries/show.html.erb +1 -1
- data/app/views/create_types/index.html.erb +1 -1
- data/app/views/create_types/show.html.erb +1 -1
- data/app/views/creates/_form.html.erb +1 -1
- data/app/views/form_of_works/index.html.erb +1 -1
- data/app/views/form_of_works/show.html.erb +1 -1
- data/app/views/frequencies/index.html.erb +1 -1
- data/app/views/frequencies/show.html.erb +1 -1
- data/app/views/identifier_types/index.html.erb +1 -1
- data/app/views/identifier_types/show.html.erb +1 -1
- data/app/views/items/_form.html.erb +13 -33
- data/app/views/items/index.html+phone.erb +3 -3
- data/app/views/items/index.html.erb +3 -3
- data/app/views/items/show.html+phone.erb +5 -5
- data/app/views/items/show.html.erb +119 -134
- data/app/views/languages/index.html.erb +1 -1
- data/app/views/languages/show.html.erb +1 -1
- data/app/views/layouts/agents.html.erb +2 -2
- data/app/views/layouts/items.html.erb +1 -1
- data/app/views/layouts/manifestations.html.erb +4 -4
- data/app/views/licenses/index.html.erb +1 -1
- data/app/views/licenses/show.html.erb +1 -1
- data/app/views/manifestation_relationship_types/index.html.erb +1 -1
- data/app/views/manifestation_relationship_types/show.html.erb +1 -1
- data/app/views/manifestation_relationships/_form.html.erb +1 -1
- data/app/views/manifestations/_call_number.html.erb +3 -3
- 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/_export_detail.html.erb +0 -1
- data/app/views/manifestations/_export_list.html.erb +3 -4
- data/app/views/manifestations/_form.html.erb +8 -31
- data/app/views/manifestations/_identifier_fields.html.erb +1 -1
- 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.txt.erb +1 -1
- data/app/views/manifestations/_pub_year_facet.html.erb +1 -1
- data/app/views/manifestations/_reservable_facet.html.erb +2 -2
- data/app/views/manifestations/_show_creators.html.erb +1 -1
- data/app/views/manifestations/_show_detail_librarian.html.erb +13 -37
- data/app/views/manifestations/_show_detail_user.html.erb +13 -25
- data/app/views/manifestations/_show_holding.html+phone.erb +3 -3
- data/app/views/manifestations/_show_holding.html.erb +2 -2
- data/app/views/manifestations/explain.sru +9 -0
- data/app/views/manifestations/index.atom.builder +1 -1
- data/app/views/manifestations/index.html.erb +7 -7
- data/app/views/manifestations/index.opds.builder +1 -1
- data/app/views/manifestations/index.rdf.builder +3 -3
- data/app/views/manifestations/index.rss.builder +3 -3
- data/app/views/manifestations/index.sru.builder +101 -0
- data/app/views/manifestations/index.txt.erb +1 -0
- data/app/views/manifestations/show.txt.erb +1 -0
- data/app/views/medium_of_performances/index.html.erb +1 -1
- data/app/views/medium_of_performances/show.html.erb +1 -1
- data/app/views/notifier/manifestation_info.en.text.erb +1 -1
- data/app/views/notifier/manifestation_info.ja.text.erb +1 -1
- data/app/views/picture_files/edit.html.erb +0 -4
- data/app/views/produce_types/index.html.erb +1 -1
- data/app/views/produce_types/show.html.erb +1 -1
- data/app/views/produces/_form.html.erb +1 -1
- data/app/views/realize_types/index.html.erb +1 -1
- data/app/views/realize_types/show.html.erb +1 -1
- data/app/views/realizes/_form.html.erb +1 -1
- data/app/views/resource_import_files/_results.html.erb +0 -6
- data/app/views/resource_import_files/new.html.erb +2 -2
- data/app/views/resource_import_results/index.html.erb +11 -0
- data/app/views/resource_import_results/index.txt.erb +3 -0
- data/app/views/series_statements/_form.html.erb +8 -6
- data/app/views/series_statements/show.html.erb +0 -12
- data/config/locales/translation_en.yml +1 -28
- data/config/locales/translation_ja.yml +3 -30
- data/config/routes.rb +0 -2
- data/db/migrate/20081027150907_create_picture_files.rb +2 -0
- data/db/migrate/20160319144230_create_issn_records.rb +11 -0
- data/db/migrate/20160506144040_create_isbn_records.rb +11 -0
- data/db/migrate/20170116134107_create_issn_record_and_manifestations.rb +11 -0
- data/db/migrate/20170116134120_create_isbn_record_and_manifestations.rb +11 -0
- data/db/migrate/20190102034126_create_doi_records.rb +13 -0
- data/db/migrate/20190311154610_create_periodicals.rb +10 -0
- data/db/migrate/20190312033839_create_periodical_and_manifestations.rb +11 -0
- data/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -0
- data/lib/enju_biblio/openurl.rb +1 -5
- data/lib/enju_biblio/porta_cql.rb +282 -0
- data/lib/enju_biblio/sru.rb +83 -0
- data/lib/enju_biblio/version.rb +1 -1
- data/lib/enju_biblio.rb +2 -0
- data/lib/generators/enju_biblio/setup/setup_generator.rb +0 -2
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/agent_relationship_types.yml +3 -3
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/agent_types.yml +2 -4
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/carrier_types.yml +8 -26
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/content_types.yml +12 -24
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/create_types.yml +4 -22
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/form_of_works.yml +1 -1
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/frequencies.yml +9 -18
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/languages.yml +2 -4
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/licenses.yml +2 -2
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/manifestation_relationship_types.yml +2 -4
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/medium_of_performances.yml +15 -0
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/produce_types.yml +2 -19
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/realize_types.yml +3 -21
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_isbn_which_is_already_imported/assigns_a_newly_created_import_request_as_import_request.yml +121 -0
- data/spec/controllers/content_types_controller_spec.rb +1 -1
- data/spec/controllers/items_controller_spec.rb +1 -59
- data/spec/controllers/manifestations_controller_spec.rb +19 -49
- data/spec/dummy/app/helpers/application_helper.rb +1 -1
- data/spec/dummy/app/models/user.rb +4 -0
- data/spec/dummy/bin/bundle +1 -1
- data/spec/dummy/bin/setup +1 -3
- data/spec/dummy/bin/update +4 -2
- data/spec/dummy/bin/yarn +3 -3
- data/spec/dummy/config/application.rb +1 -2
- data/spec/dummy/config/database.yml +70 -9
- data/spec/dummy/config/initializers/assets.rb +2 -2
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/002_devise_create_users.rb +1 -0
- data/spec/dummy/db/migrate/113_create_events.rb +2 -4
- data/spec/dummy/db/migrate/154_create_messages.rb +4 -8
- data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +3 -3
- data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +2 -4
- data/spec/dummy/db/migrate/20090519203307_create_participates.rb +2 -4
- data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +2 -2
- data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +1 -0
- data/spec/dummy/db/migrate/20140518111006_create_message_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140523171309_create_event_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140524135607_create_bookmark_stat_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140720192418_add_default_library_id_to_event_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20140812152348_create_event_export_files.rb +1 -1
- data/spec/dummy/db/migrate/20140812153137_create_event_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140814070854_add_default_event_category_id_to_event_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20151128142913_create_places.rb +14 -0
- data/spec/dummy/db/migrate/20151201163718_add_place_id_to_event.rb +5 -0
- data/spec/dummy/db/migrate/20160703184258_add_most_recent_to_event_import_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160703184311_add_most_recent_to_event_export_file_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20160813191533_add_book_jacket_source_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160813191820_add_screenshot_generator_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160815045420_add_most_recent_to_bookmark_stat_transitions.rb +9 -0
- data/spec/dummy/db/migrate/20170116150432_create_jpno_records.rb +10 -0
- data/spec/dummy/db/migrate/20171126072934_create_ndla_records.rb +10 -0
- data/spec/dummy/db/migrate/20180107162659_add_constraints_to_most_recent_for_message_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107162711_add_constraints_to_most_recent_for_message_request_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107164558_add_constraints_to_most_recent_for_event_import_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107164617_add_constraints_to_most_recent_for_event_export_file_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180107172413_add_constraints_to_most_recent_for_bookmark_stat_transitions.rb +13 -0
- data/spec/dummy/db/migrate/20180709023035_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb +36 -0
- data/spec/dummy/db/migrate/20180709023036_add_missing_unique_indices.acts_as_taggable_on_engine.rb +26 -0
- data/spec/dummy/db/migrate/20180709023037_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +20 -0
- data/spec/dummy/db/migrate/20180709023038_add_missing_taggable_index.acts_as_taggable_on_engine.rb +15 -0
- data/spec/dummy/db/migrate/20180709023039_change_collation_for_tag_names.acts_as_taggable_on_engine.rb +15 -0
- data/spec/dummy/db/migrate/20180709023040_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb +23 -0
- data/spec/dummy/db/migrate/20180709161346_add_created_at_to_tag.rb +6 -0
- data/spec/dummy/db/migrate/20181119170645_add_foreign_key_to_events_referencing_event_categories.rb +5 -0
- data/spec/dummy/db/migrate/20190501043418_create_ndl_bib_id_records.rb +10 -0
- data/spec/dummy/db/migrate/20190508160525_create_retains.rb +10 -0
- data/spec/dummy/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
- data/spec/dummy/db/migrate/20190630115523_add_login_banner_translations_to_library_group.rb +6 -0
- data/spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb +5 -0
- data/spec/dummy/db/migrate/20190630153136_add_display_name_translations_to_event.rb +6 -0
- data/spec/dummy/db/migrate/20190706052525_add_display_name_translations_to_circulation_status.rb +5 -0
- data/spec/dummy/db/schema.rb +335 -221
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/factories/create_types.rb +8 -7
- data/spec/factories/produce_types.rb +8 -7
- data/spec/factories/realize_types.rb +8 -7
- data/spec/factories/series_statement.rb +3 -4
- data/spec/fixtures/agent_relationship_types.yml +8 -7
- data/spec/fixtures/agent_types.yml +11 -10
- data/spec/fixtures/carrier_types.yml +16 -15
- data/spec/fixtures/content_types.yml +20 -31
- data/spec/fixtures/create_types.yml +12 -15
- data/spec/fixtures/creates.yml +0 -2
- data/spec/fixtures/form_of_works.yml +11 -10
- data/spec/fixtures/frequencies.yml +17 -25
- data/spec/fixtures/items.yml +11 -12
- data/spec/fixtures/languages.yml +11 -11
- data/spec/fixtures/libraries.yml +30 -30
- data/spec/fixtures/library_groups.yml +11 -6
- data/spec/fixtures/licenses.yml +8 -7
- data/spec/fixtures/manifestation_relationship_types.yml +12 -11
- data/spec/fixtures/manifestations.yml +0 -1
- data/spec/fixtures/medium_of_performances.yml +10 -9
- data/spec/fixtures/picture_files.yml +2 -0
- data/spec/fixtures/produce_types.yml +10 -11
- data/spec/fixtures/produces.yml +0 -2
- data/spec/fixtures/profiles.yml +8 -5
- data/spec/fixtures/realize_types.yml +11 -13
- data/spec/fixtures/realizes.yml +0 -2
- data/spec/fixtures/request_status_types.yml +14 -14
- data/spec/fixtures/request_types.yml +13 -13
- data/spec/fixtures/resource_export_files.yml +1 -1
- data/spec/fixtures/resource_import_results.yml +2 -2
- data/spec/fixtures/roles.yml +22 -5
- data/spec/fixtures/shelves.yml +16 -16
- data/spec/fixtures/user_groups.yml +12 -12
- data/spec/fixtures/user_has_roles.yml +3 -4
- data/spec/fixtures/users.yml +0 -3
- data/spec/models/agent_relationship_type_spec.rb +8 -7
- data/spec/models/agent_type_spec.rb +8 -7
- data/spec/models/carrier_type_spec.rb +12 -11
- data/spec/models/content_type_spec.rb +8 -7
- data/spec/models/create_type_spec.rb +8 -7
- data/spec/models/doi_record_spec.rb +19 -0
- data/spec/models/form_of_work_spec.rb +8 -7
- data/spec/models/frequency_spec.rb +8 -7
- data/spec/models/item_spec.rb +0 -7
- data/spec/models/language_spec.rb +10 -9
- data/spec/models/license_spec.rb +8 -7
- data/spec/models/manifestation_relationship_type_spec.rb +8 -7
- data/spec/models/manifestation_spec.rb +81 -24
- data/spec/models/medium_of_performance_spec.rb +8 -7
- data/spec/models/periodical_and_manifestation_spec.rb +17 -0
- data/spec/models/periodical_spec.rb +16 -0
- data/spec/models/picture_file_spec.rb +2 -0
- data/spec/models/produce_type_spec.rb +8 -7
- data/spec/models/realize_type_spec.rb +8 -7
- data/spec/models/resource_export_file_spec.rb +9 -62
- data/spec/models/resource_import_file_spec.rb +14 -44
- data/spec/rails_helper.rb +8 -4
- data/spec/system/manifestations_spec.rb +0 -30
- data/spec/views/items/index.html.erb_spec.rb +6 -7
- data/spec/views/manifestations/index.html.erb_spec.rb +1 -1
- data/spec/views/manifestations/index.rdf.builder_spec.rb +1 -0
- data/spec/views/manifestations/{index.txt.ruby_spec.rb → index.txt.erb_spec.rb} +1 -1
- data/spec/views/manifestations/{show.txt.ruby_spec.rb → show.txt.erb_spec.rb} +2 -2
- data/spec/views/resource_import_results/show.html.erb_spec.rb +1 -1
- metadata +560 -718
- data/app/controllers/item_custom_properties_controller.rb +0 -69
- data/app/controllers/manifestation_custom_properties_controller.rb +0 -69
- data/app/models/item_custom_property.rb +0 -18
- data/app/models/item_custom_value.rb +0 -17
- data/app/models/manifestation_custom_property.rb +0 -18
- data/app/models/manifestation_custom_value.rb +0 -17
- data/app/policies/item_custom_property_policy.rb +0 -21
- data/app/policies/manifestation_custom_property_policy.rb +0 -21
- data/app/views/agent_import_results/index.txt.ruby +0 -5
- data/app/views/item_custom_properties/_form.html.erb +0 -32
- data/app/views/item_custom_properties/edit.html.erb +0 -13
- data/app/views/item_custom_properties/index.html.erb +0 -43
- data/app/views/item_custom_properties/new.html.erb +0 -12
- data/app/views/item_custom_properties/show.html.erb +0 -28
- data/app/views/items/_item.json.jbuilder +0 -17
- data/app/views/items/index.json.jbuilder +0 -5
- data/app/views/items/show.json.jbuilder +0 -1
- data/app/views/manifestation_custom_properties/_form.html.erb +0 -32
- data/app/views/manifestation_custom_properties/edit.html.erb +0 -13
- data/app/views/manifestation_custom_properties/index.html.erb +0 -43
- data/app/views/manifestation_custom_properties/new.html.erb +0 -12
- data/app/views/manifestation_custom_properties/show.html.erb +0 -28
- data/app/views/manifestations/index.txt.ruby +0 -7
- data/app/views/manifestations/show.json.jbuilder +0 -2
- data/app/views/manifestations/show.txt.ruby +0 -5
- data/app/views/resource_import_results/index.txt.ruby +0 -5
- data/db/migrate/20190818075603_add_memo_to_manifestation.rb +0 -5
- data/db/migrate/20190818075628_add_memo_to_item.rb +0 -5
- data/db/migrate/20200425072340_create_manifestation_custom_properties.rb +0 -12
- data/db/migrate/20200425072349_create_item_custom_properties.rb +0 -12
- data/db/migrate/20200425074758_create_manifestation_custom_values.rb +0 -12
- data/db/migrate/20200425074822_create_item_custom_values.rb +0 -12
- data/lib/generators/enju_biblio/setup/templates/db/fixtures/agents.yml +0 -19
- data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_import_custom_values.yml +0 -121
- data/spec/cassette_library/resource_import_results/index_txt_ruby/renders_a_list_of_resource_import_results.yml +0 -121
- data/spec/controllers/item_custom_properties_controller_spec.rb +0 -449
- data/spec/controllers/manifestation_custom_properties_controller_spec.rb +0 -449
- data/spec/dummy/db/migrate/20081117143156_create_inventory_files.rb +0 -18
- data/spec/dummy/db/migrate/20081117143455_create_inventories.rb +0 -17
- data/spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb +0 -15
- data/spec/dummy/db/migrate/20091202124834_create_versions.rb +0 -18
- data/spec/dummy/db/migrate/20100525171356_acts_as_taggable_on_migration.rb +0 -30
- data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +0 -5
- data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +0 -6
- data/spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb +0 -5
- data/spec/dummy/db/migrate/20150421023923_create_identities.rb +0 -14
- data/spec/dummy/db/migrate/20151126005552_add_provider_to_identity.rb +0 -5
- data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +0 -18
- data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +0 -22
- data/spec/factories/item_custom_property.rb +0 -6
- data/spec/factories/item_custom_value.rb +0 -6
- data/spec/factories/manifestation_custom_property.rb +0 -6
- data/spec/factories/manifestation_custom_value.rb +0 -6
- data/spec/fixtures/carrier_type_has_checkout_types.yml +0 -31
- data/spec/fixtures/checkout_stat_has_manifestations.yml +0 -24
- data/spec/fixtures/checkout_stat_has_users.yml +0 -24
- data/spec/fixtures/checkout_types.yml +0 -34
- data/spec/fixtures/circulation_statuses.yml +0 -136
- data/spec/fixtures/inventory_files.yml +0 -40
- data/spec/fixtures/item_custom_properties.yml +0 -24
- data/spec/fixtures/manifestation_checkout_stats.yml +0 -29
- data/spec/fixtures/manifestation_custom_properties.yml +0 -24
- data/spec/fixtures/manifestation_reserve_stats.yml +0 -29
- data/spec/fixtures/reserve_stat_has_manifestations.yml +0 -24
- data/spec/fixtures/reserve_stat_has_users.yml +0 -24
- data/spec/fixtures/reserve_transitions.yml +0 -104
- data/spec/fixtures/reserves.yml +0 -143
- data/spec/fixtures/use_restrictions.yml +0 -93
- data/spec/fixtures/user_checkout_stats.yml +0 -28
- data/spec/fixtures/user_group_has_checkout_types.yml +0 -111
- data/spec/fixtures/user_reserve_stats.yml +0 -28
- data/spec/models/item_custom_property_spec.rb +0 -18
- data/spec/models/item_custom_value_spec.rb +0 -17
- data/spec/models/manifestation_custom_property_spec.rb +0 -18
- data/spec/models/manifestation_custom_value_spec.rb +0 -17
- data/spec/requests/item_custom_properties_spec.rb +0 -129
- data/spec/requests/manifestation_custom_properties_spec.rb +0 -129
- data/spec/routing/item_custom_properties_routing_spec.rb +0 -38
- data/spec/routing/manifestation_custom_properties_routing_spec.rb +0 -38
- data/spec/system/items_spec.rb +0 -121
- data/spec/system/series_statements_spec.rb +0 -16
- data/spec/views/agent_import_results/index.html.erb_spec.rb +0 -29
- data/spec/views/agent_import_results/index.txt.ruby_spec.rb +0 -20
- data/spec/views/agent_import_results/show.html.erb_spec.rb +0 -24
- data/spec/views/item_custom_properties/edit.html.erb_spec.rb +0 -21
- data/spec/views/item_custom_properties/index.html.erb_spec.rb +0 -25
- data/spec/views/item_custom_properties/new.html.erb_spec.rb +0 -21
- data/spec/views/item_custom_properties/show.html.erb_spec.rb +0 -16
- data/spec/views/items/index.json.jbuilder_spec.rb +0 -15
- data/spec/views/items/show.json.jbuilder_spec.rb +0 -15
- data/spec/views/manifestation_custom_properties/edit.html.erb_spec.rb +0 -21
- data/spec/views/manifestation_custom_properties/index.html.erb_spec.rb +0 -25
- data/spec/views/manifestation_custom_properties/new.html.erb_spec.rb +0 -21
- data/spec/views/manifestation_custom_properties/show.html.erb_spec.rb +0 -16
- data/spec/views/manifestations/show.json.jbuilder_spec.rb +0 -16
- data/spec/views/resource_import_results/index.txt.ruby_spec.rb +0 -22
@@ -1,93 +0,0 @@
|
|
1
|
-
---
|
2
|
-
use_restriction_00001:
|
3
|
-
name: Available For Supply Without Return
|
4
|
-
display_name: Available For Supply Without Return
|
5
|
-
id: 1
|
6
|
-
position: 1
|
7
|
-
note: ""
|
8
|
-
use_restriction_00002:
|
9
|
-
name: In Library Use Only
|
10
|
-
display_name: In Library Use Only
|
11
|
-
id: 2
|
12
|
-
position: 2
|
13
|
-
note: ""
|
14
|
-
use_restriction_00003:
|
15
|
-
name: Limited Circulation, Long Loan Period
|
16
|
-
display_name: Limited Circulation, Long Loan Period
|
17
|
-
id: 3
|
18
|
-
position: 3
|
19
|
-
note: ""
|
20
|
-
use_restriction_00004:
|
21
|
-
name: Limited Circulation, Normal Loan Period
|
22
|
-
display_name: Limited Circulation, Normal Loan Period
|
23
|
-
id: 4
|
24
|
-
position: 4
|
25
|
-
note: ""
|
26
|
-
use_restriction_00005:
|
27
|
-
name: Limited Circulation, Short Loan Period
|
28
|
-
display_name: Limited Circulation, Short Loan Period
|
29
|
-
id: 5
|
30
|
-
position: 5
|
31
|
-
note: ""
|
32
|
-
use_restriction_00006:
|
33
|
-
name: No Reproduction
|
34
|
-
display_name: No Reproduction
|
35
|
-
id: 6
|
36
|
-
position: 6
|
37
|
-
note: ""
|
38
|
-
use_restriction_00007:
|
39
|
-
name: Not For Loan
|
40
|
-
display_name: Not For Loan
|
41
|
-
id: 7
|
42
|
-
position: 7
|
43
|
-
note: ""
|
44
|
-
use_restriction_00008:
|
45
|
-
name: Overnight Only
|
46
|
-
display_name: Overnight Only
|
47
|
-
id: 8
|
48
|
-
position: 8
|
49
|
-
note: ""
|
50
|
-
use_restriction_00009:
|
51
|
-
name: Renewals Not Permitted
|
52
|
-
display_name: Renewals Not Permitted
|
53
|
-
id: 9
|
54
|
-
position: 9
|
55
|
-
note: ""
|
56
|
-
use_restriction_00010:
|
57
|
-
name: Supervision Required
|
58
|
-
display_name: Supervision Required
|
59
|
-
id: 10
|
60
|
-
position: 10
|
61
|
-
note: ""
|
62
|
-
use_restriction_00011:
|
63
|
-
name: Term Loan
|
64
|
-
display_name: Term Loan
|
65
|
-
id: 11
|
66
|
-
position: 11
|
67
|
-
note: ""
|
68
|
-
use_restriction_00012:
|
69
|
-
name: Use Only In Controlled Access
|
70
|
-
display_name: Use Only In Controlled Access
|
71
|
-
id: 12
|
72
|
-
position: 12
|
73
|
-
note: ""
|
74
|
-
use_restriction_00013:
|
75
|
-
name: User Signature Required
|
76
|
-
display_name: User Signature Required
|
77
|
-
id: 13
|
78
|
-
position: 13
|
79
|
-
note: ""
|
80
|
-
|
81
|
-
# == Schema Information
|
82
|
-
#
|
83
|
-
# Table name: use_restrictions
|
84
|
-
#
|
85
|
-
# id :integer not null, primary key
|
86
|
-
# name :string(255) not null
|
87
|
-
# display_name :text
|
88
|
-
# note :text
|
89
|
-
# position :integer
|
90
|
-
# created_at :datetime
|
91
|
-
# updated_at :datetime
|
92
|
-
#
|
93
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
-
|
3
|
-
one:
|
4
|
-
id: 1
|
5
|
-
start_date: 2008-12-15 18:43:02
|
6
|
-
end_date: 2008-12-16 18:43:02
|
7
|
-
note: MyText
|
8
|
-
|
9
|
-
two:
|
10
|
-
id: 2
|
11
|
-
start_date: 2008-12-15 18:43:02
|
12
|
-
end_date: 2008-12-16 18:43:02
|
13
|
-
note: MyText
|
14
|
-
# == Schema Information
|
15
|
-
#
|
16
|
-
# Table name: user_checkout_stats
|
17
|
-
#
|
18
|
-
# id :integer not null, primary key
|
19
|
-
# start_date :datetime
|
20
|
-
# end_date :datetime
|
21
|
-
# note :text
|
22
|
-
# state :string(255)
|
23
|
-
# created_at :datetime not null
|
24
|
-
# updated_at :datetime not null
|
25
|
-
# started_at :datetime
|
26
|
-
# completed_at :datetime
|
27
|
-
#
|
28
|
-
|
@@ -1,111 +0,0 @@
|
|
1
|
-
---
|
2
|
-
user_group_has_checkout_type_00001:
|
3
|
-
checkout_type_id: 1
|
4
|
-
updated_at: 2007-12-23 03:13:08.107022 +09:00
|
5
|
-
checkout_limit: 3
|
6
|
-
reservation_limit: 2
|
7
|
-
user_group_id: 1
|
8
|
-
checkout_period: 0
|
9
|
-
checkout_renewal_limit: 1
|
10
|
-
id: 1
|
11
|
-
created_at: 2007-12-23 03:13:08.107022 +09:00
|
12
|
-
set_due_date_before_closing_day: false
|
13
|
-
user_group_has_checkout_type_00002:
|
14
|
-
checkout_type_id: 2
|
15
|
-
updated_at: 2007-12-23 03:13:15.620143 +09:00
|
16
|
-
checkout_limit: 3
|
17
|
-
reservation_limit: 2
|
18
|
-
user_group_id: 1
|
19
|
-
checkout_period: 10
|
20
|
-
checkout_renewal_limit: 1
|
21
|
-
id: 2
|
22
|
-
created_at: 2007-12-23 03:13:15.620143 +09:00
|
23
|
-
set_due_date_before_closing_day: false
|
24
|
-
user_group_has_checkout_type_00003:
|
25
|
-
checkout_type_id: 1
|
26
|
-
updated_at: 2007-12-23 03:13:23.416856 +09:00
|
27
|
-
checkout_limit: 3
|
28
|
-
reservation_limit: 2
|
29
|
-
user_group_id: 2
|
30
|
-
checkout_period: 21
|
31
|
-
checkout_renewal_limit: 1
|
32
|
-
id: 3
|
33
|
-
created_at: 2007-12-23 03:13:23.416856 +09:00
|
34
|
-
set_due_date_before_closing_day: false
|
35
|
-
user_group_has_checkout_type_00004:
|
36
|
-
checkout_type_id: 2
|
37
|
-
updated_at: 2007-12-23 03:13:29.880538 +09:00
|
38
|
-
checkout_limit: 3
|
39
|
-
reservation_limit: 2
|
40
|
-
user_group_id: 2
|
41
|
-
checkout_period: 21
|
42
|
-
checkout_renewal_limit: 1
|
43
|
-
id: 4
|
44
|
-
created_at: 2007-12-23 03:13:29.880538 +09:00
|
45
|
-
set_due_date_before_closing_day: false
|
46
|
-
user_group_has_checkout_type_00005:
|
47
|
-
checkout_type_id: 1
|
48
|
-
updated_at: 2007-12-23 03:13:37.440462 +09:00
|
49
|
-
checkout_limit: 3
|
50
|
-
reservation_limit: 3
|
51
|
-
user_group_id: 3
|
52
|
-
checkout_period: 14
|
53
|
-
checkout_renewal_limit: 1
|
54
|
-
id: 5
|
55
|
-
created_at: 2007-12-23 03:13:37.440462 +09:00
|
56
|
-
set_due_date_before_closing_day: false
|
57
|
-
user_group_has_checkout_type_00006:
|
58
|
-
checkout_type_id: 2
|
59
|
-
updated_at: 2007-12-23 03:13:46.312751 +09:00
|
60
|
-
checkout_limit: 3
|
61
|
-
reservation_limit: 3
|
62
|
-
user_group_id: 3
|
63
|
-
checkout_period: 7
|
64
|
-
checkout_renewal_limit: 1
|
65
|
-
id: 6
|
66
|
-
created_at: 2007-12-23 03:13:46.312751 +09:00
|
67
|
-
set_due_date_before_closing_day: false
|
68
|
-
user_group_has_checkout_type_00007:
|
69
|
-
checkout_type_id: 3
|
70
|
-
updated_at: 2007-12-23 03:13:46.312751 +09:00
|
71
|
-
checkout_limit: 3
|
72
|
-
reservation_limit: 3
|
73
|
-
user_group_id: 2
|
74
|
-
checkout_period: 3
|
75
|
-
checkout_renewal_limit: 1
|
76
|
-
id: 7
|
77
|
-
created_at: 2007-12-23 03:13:46.312751 +09:00
|
78
|
-
set_due_date_before_closing_day: true
|
79
|
-
user_group_has_checkout_type_00008:
|
80
|
-
checkout_type_id: 3
|
81
|
-
updated_at: 2007-12-23 03:13:46.312751 +09:00
|
82
|
-
checkout_limit: 3
|
83
|
-
reservation_limit: 3
|
84
|
-
user_group_id: 1
|
85
|
-
checkout_period: 3
|
86
|
-
checkout_renewal_limit: 1
|
87
|
-
id: 8
|
88
|
-
created_at: 2007-12-23 03:13:46.312751 +09:00
|
89
|
-
set_due_date_before_closing_day: true
|
90
|
-
|
91
|
-
# == Schema Information
|
92
|
-
#
|
93
|
-
# Table name: user_group_has_checkout_types
|
94
|
-
#
|
95
|
-
# id :integer not null, primary key
|
96
|
-
# user_group_id :integer not null
|
97
|
-
# checkout_type_id :integer not null
|
98
|
-
# checkout_limit :integer default(0), not null
|
99
|
-
# checkout_period :integer default(0), not null
|
100
|
-
# checkout_renewal_limit :integer default(0), not null
|
101
|
-
# reservation_limit :integer default(0), not null
|
102
|
-
# reservation_expired_period :integer default(7), not null
|
103
|
-
# set_due_date_before_closing_day :boolean default(FALSE), not null
|
104
|
-
# fixed_due_date :datetime
|
105
|
-
# note :text
|
106
|
-
# position :integer
|
107
|
-
# created_at :datetime
|
108
|
-
# updated_at :datetime
|
109
|
-
# current_checkout_count :integer
|
110
|
-
#
|
111
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
-
|
3
|
-
one:
|
4
|
-
id: 1
|
5
|
-
start_date: 2008-12-20 11:36:28
|
6
|
-
end_date: 2008-12-21 11:36:28
|
7
|
-
note: MyText
|
8
|
-
|
9
|
-
two:
|
10
|
-
id: 2
|
11
|
-
start_date: 2008-12-20 11:36:28
|
12
|
-
end_date: 2008-12-21 11:36:28
|
13
|
-
note: MyText
|
14
|
-
# == Schema Information
|
15
|
-
#
|
16
|
-
# Table name: user_reserve_stats
|
17
|
-
#
|
18
|
-
# id :integer not null, primary key
|
19
|
-
# start_date :datetime
|
20
|
-
# end_date :datetime
|
21
|
-
# note :text
|
22
|
-
# state :string(255)
|
23
|
-
# created_at :datetime not null
|
24
|
-
# updated_at :datetime not null
|
25
|
-
# started_at :datetime
|
26
|
-
# completed_at :datetime
|
27
|
-
#
|
28
|
-
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'rails_helper'
|
2
|
-
|
3
|
-
RSpec.describe ItemCustomProperty, type: :model do
|
4
|
-
pending "add some examples to (or delete) #{__FILE__}"
|
5
|
-
end
|
6
|
-
|
7
|
-
# == Schema Information
|
8
|
-
#
|
9
|
-
# Table name: item_custom_properties
|
10
|
-
#
|
11
|
-
# id :integer not null, primary key
|
12
|
-
# name :string not null
|
13
|
-
# display_name :text not null
|
14
|
-
# note :text
|
15
|
-
# position :integer default(1), not null
|
16
|
-
# created_at :datetime not null
|
17
|
-
# updated_at :datetime not null
|
18
|
-
#
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'rails_helper'
|
2
|
-
|
3
|
-
RSpec.describe ItemCustomValue, type: :model do
|
4
|
-
pending "add some examples to (or delete) #{__FILE__}"
|
5
|
-
end
|
6
|
-
|
7
|
-
# == Schema Information
|
8
|
-
#
|
9
|
-
# Table name: item_custom_values
|
10
|
-
#
|
11
|
-
# id :integer not null, primary key
|
12
|
-
# item_custom_property_id :integer not null
|
13
|
-
# item_id :integer not null
|
14
|
-
# value :text
|
15
|
-
# created_at :datetime not null
|
16
|
-
# updated_at :datetime not null
|
17
|
-
#
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'rails_helper'
|
2
|
-
|
3
|
-
RSpec.describe ManifestationCustomProperty, type: :model do
|
4
|
-
pending "add some examples to (or delete) #{__FILE__}"
|
5
|
-
end
|
6
|
-
|
7
|
-
# == Schema Information
|
8
|
-
#
|
9
|
-
# Table name: manifestation_custom_properties
|
10
|
-
#
|
11
|
-
# id :integer not null, primary key
|
12
|
-
# name :string not null
|
13
|
-
# display_name :text not null
|
14
|
-
# note :text
|
15
|
-
# position :integer default(1), not null
|
16
|
-
# created_at :datetime not null
|
17
|
-
# updated_at :datetime not null
|
18
|
-
#
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'rails_helper'
|
2
|
-
|
3
|
-
RSpec.describe ManifestationCustomValue, type: :model do
|
4
|
-
pending "add some examples to (or delete) #{__FILE__}"
|
5
|
-
end
|
6
|
-
|
7
|
-
# == Schema Information
|
8
|
-
#
|
9
|
-
# Table name: manifestation_custom_values
|
10
|
-
#
|
11
|
-
# id :integer not null, primary key
|
12
|
-
# manifestation_custom_property_id :integer not null
|
13
|
-
# manifestation_id :integer not null
|
14
|
-
# value :text
|
15
|
-
# created_at :datetime not null
|
16
|
-
# updated_at :datetime not null
|
17
|
-
#
|
@@ -1,129 +0,0 @@
|
|
1
|
-
require 'rails_helper'
|
2
|
-
|
3
|
-
# This spec was generated by rspec-rails when you ran the scaffold generator.
|
4
|
-
# It demonstrates how one might use RSpec to test the controller code that
|
5
|
-
# was generated by Rails when you ran the scaffold generator.
|
6
|
-
#
|
7
|
-
# It assumes that the implementation code is generated by the rails scaffold
|
8
|
-
# generator. If you are using any extension libraries to generate different
|
9
|
-
# controller code, this generated spec may or may not pass.
|
10
|
-
#
|
11
|
-
# It only uses APIs available in rails and/or rspec-rails. There are a number
|
12
|
-
# of tools you can use to make these specs even more expressive, but we're
|
13
|
-
# sticking to rails and rspec-rails APIs to keep things simple and stable.
|
14
|
-
|
15
|
-
RSpec.describe "/item_custom_properties", type: :request do
|
16
|
-
# ItemCustomProperty. As you add validations to ItemCustomProperty, be sure to
|
17
|
-
# adjust the attributes here as well.
|
18
|
-
let(:valid_attributes) {
|
19
|
-
skip("Add a hash of attributes valid for your model")
|
20
|
-
}
|
21
|
-
|
22
|
-
let(:invalid_attributes) {
|
23
|
-
skip("Add a hash of attributes invalid for your model")
|
24
|
-
}
|
25
|
-
|
26
|
-
describe "GET /index" do
|
27
|
-
it "renders a successful response" do
|
28
|
-
ItemCustomProperty.create! valid_attributes
|
29
|
-
get item_custom_properties_url
|
30
|
-
response.status.should redirect_to(new_user_session_url)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
describe "GET /show" do
|
35
|
-
it "renders a successful response" do
|
36
|
-
item_custom_property = ItemCustomProperty.create! valid_attributes
|
37
|
-
get item_custom_property_url(item_custom_property)
|
38
|
-
expect(response).to redirect_to(new_user_session_url)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe "GET /new" do
|
43
|
-
it "renders a successful response" do
|
44
|
-
get new_item_custom_property_url
|
45
|
-
expect(response).to redirect_to(new_user_session_url)
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
describe "GET /edit" do
|
50
|
-
it "render a successful response" do
|
51
|
-
item_custom_property = ItemCustomProperty.create! valid_attributes
|
52
|
-
get edit_item_custom_property_url(item_custom_property)
|
53
|
-
expect(response).to redirect_to(new_user_session_url)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
describe "POST /create" do
|
58
|
-
context "with valid parameters" do
|
59
|
-
it "creates a new ItemCustomProperty" do
|
60
|
-
expect {
|
61
|
-
post item_custom_properties_url, params: { item_custom_property: valid_attributes }
|
62
|
-
}.to change(ItemCustomProperty, :count).by(1)
|
63
|
-
end
|
64
|
-
|
65
|
-
it "redirects to the created item_custom_property" do
|
66
|
-
post item_custom_properties_url, params: { item_custom_property: valid_attributes }
|
67
|
-
expect(response).to redirect_to(item_custom_property_url(ItemCustomProperty.last))
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
context "with invalid parameters" do
|
72
|
-
it "does not create a new ItemCustomProperty" do
|
73
|
-
expect {
|
74
|
-
post item_custom_properties_url, params: { item_custom_property: invalid_attributes }
|
75
|
-
}.to change(ItemCustomProperty, :count).by(0)
|
76
|
-
end
|
77
|
-
|
78
|
-
it "renders a successful response (i.e. to display the 'new' template)" do
|
79
|
-
post item_custom_properties_url, params: { item_custom_property: invalid_attributes }
|
80
|
-
expect(response).to redirect_to(new_user_session_url)
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
describe "PATCH /update" do
|
86
|
-
context "with valid parameters" do
|
87
|
-
let(:new_attributes) {
|
88
|
-
skip("Add a hash of attributes valid for your model")
|
89
|
-
}
|
90
|
-
|
91
|
-
it "updates the requested item_custom_property" do
|
92
|
-
item_custom_property = ItemCustomProperty.create! valid_attributes
|
93
|
-
patch item_custom_property_url(item_custom_property), params: { item_custom_property: new_attributes }
|
94
|
-
item_custom_property.reload
|
95
|
-
skip("Add assertions for updated state")
|
96
|
-
end
|
97
|
-
|
98
|
-
it "redirects to the item_custom_property" do
|
99
|
-
item_custom_property = ItemCustomProperty.create! valid_attributes
|
100
|
-
patch item_custom_property_url(item_custom_property), params: { item_custom_property: new_attributes }
|
101
|
-
item_custom_property.reload
|
102
|
-
expect(response).to redirect_to(item_custom_property_url(item_custom_property))
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
context "with invalid parameters" do
|
107
|
-
it "renders a successful response (i.e. to display the 'edit' template)" do
|
108
|
-
item_custom_property = ItemCustomProperty.create! valid_attributes
|
109
|
-
patch item_custom_property_url(item_custom_property), params: { item_custom_property: invalid_attributes }
|
110
|
-
expect(response).to redirect_to(new_user_session_url)
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
describe "DELETE /destroy" do
|
116
|
-
it "destroys the requested item_custom_property" do
|
117
|
-
item_custom_property = ItemCustomProperty.create! valid_attributes
|
118
|
-
expect {
|
119
|
-
delete item_custom_property_url(item_custom_property)
|
120
|
-
}.to change(ItemCustomProperty, :count).by(-1)
|
121
|
-
end
|
122
|
-
|
123
|
-
it "redirects to the item_custom_properties list" do
|
124
|
-
item_custom_property = ItemCustomProperty.create! valid_attributes
|
125
|
-
delete item_custom_property_url(item_custom_property)
|
126
|
-
expect(response).to redirect_to(item_custom_properties_url)
|
127
|
-
end
|
128
|
-
end
|
129
|
-
end
|
@@ -1,129 +0,0 @@
|
|
1
|
-
require 'rails_helper'
|
2
|
-
|
3
|
-
# This spec was generated by rspec-rails when you ran the scaffold generator.
|
4
|
-
# It demonstrates how one might use RSpec to test the controller code that
|
5
|
-
# was generated by Rails when you ran the scaffold generator.
|
6
|
-
#
|
7
|
-
# It assumes that the implementation code is generated by the rails scaffold
|
8
|
-
# generator. If you are using any extension libraries to generate different
|
9
|
-
# controller code, this generated spec may or may not pass.
|
10
|
-
#
|
11
|
-
# It only uses APIs available in rails and/or rspec-rails. There are a number
|
12
|
-
# of tools you can use to make these specs even more expressive, but we're
|
13
|
-
# sticking to rails and rspec-rails APIs to keep things simple and stable.
|
14
|
-
|
15
|
-
RSpec.describe "/manifestation_custom_properties", type: :request do
|
16
|
-
# ManifestationCustomProperty. As you add validations to ManifestationCustomProperty, be sure to
|
17
|
-
# adjust the attributes here as well.
|
18
|
-
let(:valid_attributes) {
|
19
|
-
skip("Add a hash of attributes valid for your model")
|
20
|
-
}
|
21
|
-
|
22
|
-
let(:invalid_attributes) {
|
23
|
-
skip("Add a hash of attributes invalid for your model")
|
24
|
-
}
|
25
|
-
|
26
|
-
describe "GET /index" do
|
27
|
-
it "renders a successful response" do
|
28
|
-
ManifestationCustomProperty.create! valid_attributes
|
29
|
-
get manifestation_custom_properties_url
|
30
|
-
response.status.should redirect_to(new_user_session_url)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
describe "GET /show" do
|
35
|
-
it "renders a successful response" do
|
36
|
-
manifestation_custom_property = ManifestationCustomProperty.create! valid_attributes
|
37
|
-
get manifestation_custom_property_url(manifestation_custom_property)
|
38
|
-
expect(response).to redirect_to(new_user_session_url)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe "GET /new" do
|
43
|
-
it "renders a successful response" do
|
44
|
-
get new_manifestation_custom_property_url
|
45
|
-
expect(response).to redirect_to(new_user_session_url)
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
describe "GET /edit" do
|
50
|
-
it "render a successful response" do
|
51
|
-
manifestation_custom_property = ManifestationCustomProperty.create! valid_attributes
|
52
|
-
get edit_manifestation_custom_property_url(manifestation_custom_property)
|
53
|
-
expect(response).to redirect_to(new_user_session_url)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
describe "POST /create" do
|
58
|
-
context "with valid parameters" do
|
59
|
-
it "creates a new ManifestationCustomProperty" do
|
60
|
-
expect {
|
61
|
-
post manifestation_custom_properties_url, params: { manifestation_custom_property: valid_attributes }
|
62
|
-
}.to change(ManifestationCustomProperty, :count).by(1)
|
63
|
-
end
|
64
|
-
|
65
|
-
it "redirects to the created manifestation_custom_property" do
|
66
|
-
post manifestation_custom_properties_url, params: { manifestation_custom_property: valid_attributes }
|
67
|
-
expect(response).to redirect_to(manifestation_custom_property_url(ManifestationCustomProperty.last))
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
context "with invalid parameters" do
|
72
|
-
it "does not create a new ManifestationCustomProperty" do
|
73
|
-
expect {
|
74
|
-
post manifestation_custom_properties_url, params: { manifestation_custom_property: invalid_attributes }
|
75
|
-
}.to change(ManifestationCustomProperty, :count).by(0)
|
76
|
-
end
|
77
|
-
|
78
|
-
it "renders a successful response (i.e. to display the 'new' template)" do
|
79
|
-
post manifestation_custom_properties_url, params: { manifestation_custom_property: invalid_attributes }
|
80
|
-
expect(response).to redirect_to(new_user_session_url)
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
describe "PATCH /update" do
|
86
|
-
context "with valid parameters" do
|
87
|
-
let(:new_attributes) {
|
88
|
-
skip("Add a hash of attributes valid for your model")
|
89
|
-
}
|
90
|
-
|
91
|
-
it "updates the requested manifestation_custom_property" do
|
92
|
-
manifestation_custom_property = ManifestationCustomProperty.create! valid_attributes
|
93
|
-
patch manifestation_custom_property_url(manifestation_custom_property), params: { manifestation_custom_property: new_attributes }
|
94
|
-
manifestation_custom_property.reload
|
95
|
-
skip("Add assertions for updated state")
|
96
|
-
end
|
97
|
-
|
98
|
-
it "redirects to the manifestation_custom_property" do
|
99
|
-
manifestation_custom_property = ManifestationCustomProperty.create! valid_attributes
|
100
|
-
patch manifestation_custom_property_url(manifestation_custom_property), params: { manifestation_custom_property: new_attributes }
|
101
|
-
manifestation_custom_property.reload
|
102
|
-
expect(response).to redirect_to(manifestation_custom_property_url(manifestation_custom_property))
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
context "with invalid parameters" do
|
107
|
-
it "renders a successful response (i.e. to display the 'edit' template)" do
|
108
|
-
manifestation_custom_property = ManifestationCustomProperty.create! valid_attributes
|
109
|
-
patch manifestation_custom_property_url(manifestation_custom_property), params: { manifestation_custom_property: invalid_attributes }
|
110
|
-
expect(response).to redirect_to(new_user_session_url)
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
describe "DELETE /destroy" do
|
116
|
-
it "destroys the requested manifestation_custom_property" do
|
117
|
-
manifestation_custom_property = ManifestationCustomProperty.create! valid_attributes
|
118
|
-
expect {
|
119
|
-
delete manifestation_custom_property_url(manifestation_custom_property)
|
120
|
-
}.to change(ManifestationCustomProperty, :count).by(-1)
|
121
|
-
end
|
122
|
-
|
123
|
-
it "redirects to the manifestation_custom_properties list" do
|
124
|
-
manifestation_custom_property = ManifestationCustomProperty.create! valid_attributes
|
125
|
-
delete manifestation_custom_property_url(manifestation_custom_property)
|
126
|
-
expect(response).to redirect_to(manifestation_custom_properties_url)
|
127
|
-
end
|
128
|
-
end
|
129
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
require "rails_helper"
|
2
|
-
|
3
|
-
RSpec.describe ItemCustomPropertiesController, type: :routing do
|
4
|
-
describe "routing" do
|
5
|
-
it "routes to #index" do
|
6
|
-
expect(get: "/item_custom_properties").to route_to("item_custom_properties#index")
|
7
|
-
end
|
8
|
-
|
9
|
-
it "routes to #new" do
|
10
|
-
expect(get: "/item_custom_properties/new").to route_to("item_custom_properties#new")
|
11
|
-
end
|
12
|
-
|
13
|
-
it "routes to #show" do
|
14
|
-
expect(get: "/item_custom_properties/1").to route_to("item_custom_properties#show", id: "1")
|
15
|
-
end
|
16
|
-
|
17
|
-
it "routes to #edit" do
|
18
|
-
expect(get: "/item_custom_properties/1/edit").to route_to("item_custom_properties#edit", id: "1")
|
19
|
-
end
|
20
|
-
|
21
|
-
|
22
|
-
it "routes to #create" do
|
23
|
-
expect(post: "/item_custom_properties").to route_to("item_custom_properties#create")
|
24
|
-
end
|
25
|
-
|
26
|
-
it "routes to #update via PUT" do
|
27
|
-
expect(put: "/item_custom_properties/1").to route_to("item_custom_properties#update", id: "1")
|
28
|
-
end
|
29
|
-
|
30
|
-
it "routes to #update via PATCH" do
|
31
|
-
expect(patch: "/item_custom_properties/1").to route_to("item_custom_properties#update", id: "1")
|
32
|
-
end
|
33
|
-
|
34
|
-
it "routes to #destroy" do
|
35
|
-
expect(delete: "/item_custom_properties/1").to route_to("item_custom_properties#destroy", id: "1")
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
require "rails_helper"
|
2
|
-
|
3
|
-
RSpec.describe ManifestationCustomPropertiesController, type: :routing do
|
4
|
-
describe "routing" do
|
5
|
-
it "routes to #index" do
|
6
|
-
expect(get: "/manifestation_custom_properties").to route_to("manifestation_custom_properties#index")
|
7
|
-
end
|
8
|
-
|
9
|
-
it "routes to #new" do
|
10
|
-
expect(get: "/manifestation_custom_properties/new").to route_to("manifestation_custom_properties#new")
|
11
|
-
end
|
12
|
-
|
13
|
-
it "routes to #show" do
|
14
|
-
expect(get: "/manifestation_custom_properties/1").to route_to("manifestation_custom_properties#show", id: "1")
|
15
|
-
end
|
16
|
-
|
17
|
-
it "routes to #edit" do
|
18
|
-
expect(get: "/manifestation_custom_properties/1/edit").to route_to("manifestation_custom_properties#edit", id: "1")
|
19
|
-
end
|
20
|
-
|
21
|
-
|
22
|
-
it "routes to #create" do
|
23
|
-
expect(post: "/manifestation_custom_properties").to route_to("manifestation_custom_properties#create")
|
24
|
-
end
|
25
|
-
|
26
|
-
it "routes to #update via PUT" do
|
27
|
-
expect(put: "/manifestation_custom_properties/1").to route_to("manifestation_custom_properties#update", id: "1")
|
28
|
-
end
|
29
|
-
|
30
|
-
it "routes to #update via PATCH" do
|
31
|
-
expect(patch: "/manifestation_custom_properties/1").to route_to("manifestation_custom_properties#update", id: "1")
|
32
|
-
end
|
33
|
-
|
34
|
-
it "routes to #destroy" do
|
35
|
-
expect(delete: "/manifestation_custom_properties/1").to route_to("manifestation_custom_properties#destroy", id: "1")
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|