enju_biblio 0.1.0.pre34 → 0.1.0.pre35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/manifestations_controller.rb +29 -14
- data/app/models/manifestation.rb +30 -17
- data/app/models/page_sweeper.rb +1 -1
- data/app/models/series_statement.rb +3 -17
- data/app/views/manifestations/_form.html.erb +14 -3
- data/app/views/manifestations/_index_form_parent.html.erb +21 -0
- data/app/views/manifestations/_manifestation.html.erb +12 -12
- data/app/views/manifestations/_show_detail_librarian.html.erb +5 -1
- data/app/views/manifestations/_show_parent.html.erb +26 -0
- data/app/views/manifestations/_show_series_index.html.erb +1 -1
- data/app/views/manifestations/_show_series_statement.html.erb +2 -2
- data/app/views/manifestations/_submenu_parent.html.erb +8 -0
- data/app/views/manifestations/index.html.erb +6 -6
- data/app/views/series_statements/index.html.erb +1 -5
- data/config/locales/translation_en.yml +3 -0
- data/config/locales/translation_ja.yml +3 -0
- data/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb +6 -0
- data/lib/enju_biblio/version.rb +1 -1
- data/spec/cassette_library/ImportRequest/import/should_import_bibliographic_record.yml +44 -50
- 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 +44 -50
- 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 +43 -49
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/redirects_to_the_created_import_request.yml +43 -49
- 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 +43 -49
- data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/redirects_to_the_created_import_request.yml +43 -49
- data/spec/cassette_library/Manifestation/should_import_isbn.yml +3643 -0
- data/spec/dummy/app/models/ability.rb +4 -8
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +3 -12
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_iwe +0 -0
- data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
- data/spec/fixtures/manifestations.yml +11 -9
- data/spec/fixtures/series_statements.yml +15 -2
- data/spec/models/manifestation_spec.rb +3 -5
- data/spec/models/series_statement_spec.rb +1 -3
- metadata +10 -30
- data/app/controllers/series_has_manifestations_controller.rb +0 -101
- data/app/models/series_has_manifestation.rb +0 -35
- data/app/views/manifestations/_serial_form.html.erb +0 -14
- data/app/views/manifestations/_submenu_series_statement.html.erb +0 -9
- data/app/views/series_has_manifestations/_form.html.erb +0 -27
- data/app/views/series_has_manifestations/edit.html.erb +0 -15
- data/app/views/series_has_manifestations/index.html.erb +0 -34
- data/app/views/series_has_manifestations/new.html.erb +0 -14
- data/app/views/series_has_manifestations/show.html.erb +0 -23
- data/db/migrate/20110820131417_create_series_has_manifestations.rb +0 -13
- data/spec/controllers/series_has_manifestations_controller_spec.rb +0 -443
- data/spec/dummy/solr/data/test/index/segments_gs2 +0 -0
- data/spec/fixtures/series_has_manifestations.yml +0 -35
- data/spec/models/series_has_manifestation_spec.rb +0 -21
- data/spec/routing/series_has_manifestations_routing_spec.rb +0 -35
- data/spec/views/series_has_manifestations/edit.html.erb_spec.rb +0 -21
- data/spec/views/series_has_manifestations/index.html.erb_spec.rb +0 -31
- data/spec/views/series_has_manifestations/new.html.erb_spec.rb +0 -21
- data/spec/views/series_has_manifestations/show.html.erb_spec.rb +0 -21
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe "series_has_manifestations/new" do
|
4
|
-
before(:each) do
|
5
|
-
assign(:series_has_manifestation, stub_model(SeriesHasManifestation,
|
6
|
-
:series_statement_id => 1,
|
7
|
-
:manifestation_id => 1,
|
8
|
-
:position => 1
|
9
|
-
).as_new_record)
|
10
|
-
end
|
11
|
-
|
12
|
-
it "renders new series_has_manifestation form" do
|
13
|
-
render
|
14
|
-
|
15
|
-
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
16
|
-
assert_select "form", :action => series_has_manifestations_path, :method => "post" do
|
17
|
-
assert_select "input#series_has_manifestation_series_statement_id", :name => "series_has_manifestation[series_statement_id]"
|
18
|
-
assert_select "input#series_has_manifestation_manifestation_id", :name => "series_has_manifestation[manifestation_id]"
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe "series_has_manifestations/show" do
|
4
|
-
before(:each) do
|
5
|
-
@series_has_manifestation = assign(:series_has_manifestation, stub_model(SeriesHasManifestation,
|
6
|
-
:series_statement_id => 1,
|
7
|
-
:manifestation_id => 1,
|
8
|
-
:position => 1
|
9
|
-
))
|
10
|
-
end
|
11
|
-
|
12
|
-
it "renders attributes in <p>" do
|
13
|
-
render
|
14
|
-
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
15
|
-
rendered.should match(/1/)
|
16
|
-
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
17
|
-
rendered.should match(/1/)
|
18
|
-
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
19
|
-
rendered.should match(/1/)
|
20
|
-
end
|
21
|
-
end
|