enju_message 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,20 @@
1
+ message_request_transition_00001:
2
+ id: 1
3
+ to_state: pending
4
+ message_request_id: 1
5
+ sort_key: 0
6
+ most_recent: true
7
+
8
+ # == Schema Information
9
+ #
10
+ # Table name: message_request_transitions
11
+ #
12
+ # id :integer not null, primary key
13
+ # to_state :string
14
+ # metadata :text default({})
15
+ # sort_key :integer
16
+ # message_request_id :integer
17
+ # created_at :datetime
18
+ # updated_at :datetime
19
+ # most_recent :boolean
20
+ #
@@ -1,8 +1,7 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  describe MessageRequest do
4
- #pending "add some examples to (or delete) #{__FILE__}"
5
-
4
+ # pending "add some examples to (or delete) #{__FILE__}"
6
5
  end
7
6
 
8
7
  # == Schema Information
@@ -7,28 +7,28 @@ describe Message do
7
7
  @message = FactoryGirl.create(:message)
8
8
  end
9
9
 
10
- it "should require body" do
10
+ it 'should require body' do
11
11
  @message.errors[:body].should be_truthy
12
12
  end
13
13
 
14
- it "should require recipient" do
14
+ it 'should require recipient' do
15
15
  @message.errors[:recipient].should be_truthy
16
16
  end
17
17
 
18
- it "should require subject" do
18
+ it 'should require subject' do
19
19
  @message.errors[:subject].should be_truthy
20
20
  end
21
-
22
- it "should return sender_name" do
21
+
22
+ it 'should return sender_name' do
23
23
  @message.sender.username.should be_truthy
24
24
  end
25
25
 
26
- it "should return receiver_name" do
26
+ it 'should return receiver_name' do
27
27
  @message.receiver = users(:user1)
28
28
  @message.receiver.username.should be_truthy
29
29
  end
30
-
31
- it "should set read_at" do
30
+
31
+ it 'should set read_at' do
32
32
  message = messages(:user2_to_user1_1)
33
33
  message.transition_to!(:read)
34
34
  message.read_at.should be_truthy
@@ -36,7 +36,7 @@ describe Message do
36
36
  message.current_state.should eq 'read'
37
37
  end
38
38
 
39
- it "should require valid recipient" do
39
+ it 'should require valid recipient' do
40
40
  @message.recipient = 'invalidusername'
41
41
  @message.save.should be_falsy
42
42
  end
@@ -1,8 +1,7 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  describe MessageTemplate do
4
- #pending "add some examples to (or delete) #{__FILE__}"
5
-
4
+ # pending "add some examples to (or delete) #{__FILE__}"
6
5
  end
7
6
 
8
7
  # == Schema Information
@@ -0,0 +1,25 @@
1
+ require 'rails_helper'
2
+
3
+ describe 'messages/index' do
4
+ before(:each) do
5
+ assign(:messages, Kaminari.paginate_array([
6
+ stub_model(Message,
7
+ sender_id: 1,
8
+ receiver_id: 2,
9
+ created_at: Time.zone.now),
10
+ stub_model(Message,
11
+ sender_id: 1,
12
+ receiver_id: 2,
13
+ created_at: Time.zone.now)
14
+ ]).page(1))
15
+ view.stub(:filtered_params).and_return(ActionController::Parameters.new(per_page: 50).permit(:per_page))
16
+ @message_facet = {}
17
+ end
18
+
19
+ it 'renders a list of messages' do
20
+ allow(view).to receive(:policy).and_return double(create?: true, destroy?: true)
21
+ render
22
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
23
+ assert_select 'tr>td', count: 9
24
+ end
25
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_message
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-11 00:00:00.000000000 Z
11
+ date: 2017-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_library
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.0
19
+ version: 0.2.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.0
26
+ version: 0.2.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: awesome_nested_set
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.2.0
47
+ version: 1.2.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.2.0
54
+ version: 1.2.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: enju_event
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 5.0.1
75
+ version: 5.1.0.beta1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 5.0.1
82
+ version: 5.1.0.beta1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: globalize-accessors
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -206,20 +206,6 @@ dependencies:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
- - !ruby/object:Gem::Dependency
210
- name: annotate
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - ">="
214
- - !ruby/object:Gem::Version
215
- version: '0'
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: '0'
223
209
  - !ruby/object:Gem::Dependency
224
210
  name: rspec-activemodel-mocks
225
211
  requirement: !ruby/object:Gem::Requirement
@@ -516,6 +502,7 @@ files:
516
502
  - spec/fixtures/agents.yml
517
503
  - spec/fixtures/libraries.yml
518
504
  - spec/fixtures/library_groups.yml
505
+ - spec/fixtures/message_request_transitions.yml
519
506
  - spec/fixtures/message_requests.yml
520
507
  - spec/fixtures/message_templates.yml
521
508
  - spec/fixtures/messages.yml
@@ -531,6 +518,7 @@ files:
531
518
  - spec/spec_helper.rb
532
519
  - spec/support/controller_macros.rb
533
520
  - spec/support/devise.rb
521
+ - spec/views/messages/index.html.erb_spec.rb
534
522
  homepage: https://github.com/next-l/enju_message
535
523
  licenses: []
536
524
  metadata: {}
@@ -550,211 +538,213 @@ required_rubygems_version: !ruby/object:Gem::Requirement
550
538
  version: '0'
551
539
  requirements: []
552
540
  rubyforge_project:
553
- rubygems_version: 2.5.1
541
+ rubygems_version: 2.6.11
554
542
  signing_key:
555
543
  specification_version: 4
556
544
  summary: enju_message plugin
557
545
  test_files:
558
- - spec/controllers/message_requests_controller_spec.rb
559
- - spec/controllers/message_templates_controller_spec.rb
560
- - spec/controllers/messages_controller_spec.rb
561
- - spec/dummy/app/assets/javascripts/application.js
562
- - spec/dummy/app/assets/stylesheets/application.css
563
- - spec/dummy/app/controllers/application_controller.rb
564
- - spec/dummy/app/helpers/application_helper.rb
565
- - spec/dummy/app/models/user.rb
566
- - spec/dummy/app/views/layouts/application.html.erb
567
- - spec/dummy/bin/bundle
568
- - spec/dummy/bin/rails
569
- - spec/dummy/bin/rake
570
- - spec/dummy/bin/setup
571
- - spec/dummy/config/application.rb
572
- - spec/dummy/config/boot.rb
573
- - spec/dummy/config/database.yml
574
- - spec/dummy/config/environment.rb
575
- - spec/dummy/config/environments/development.rb
576
- - spec/dummy/config/environments/production.rb
577
- - spec/dummy/config/environments/test.rb
578
- - spec/dummy/config/initializers/backtrace_silencers.rb
579
- - spec/dummy/config/initializers/devise.rb
580
- - spec/dummy/config/initializers/friendly_id.rb
581
- - spec/dummy/config/initializers/inflections.rb
582
- - spec/dummy/config/initializers/mime_types.rb
583
- - spec/dummy/config/initializers/secret_token.rb
584
- - spec/dummy/config/initializers/session_store.rb
585
- - spec/dummy/config/initializers/wrap_parameters.rb
586
- - spec/dummy/config/locales/en.yml
587
- - spec/dummy/config/routes.rb
588
- - spec/dummy/config.ru
589
- - spec/dummy/db/migrate/001_create_agents.rb
590
- - spec/dummy/db/migrate/002_devise_create_users.rb
591
- - spec/dummy/db/migrate/005_create_manifestations.rb
592
- - spec/dummy/db/migrate/006_create_items.rb
593
- - spec/dummy/db/migrate/012_create_owns.rb
594
- - spec/dummy/db/migrate/015_create_creates.rb
595
- - spec/dummy/db/migrate/041_create_roles.rb
596
- - spec/dummy/db/migrate/047_create_produces.rb
597
- - spec/dummy/db/migrate/059_create_libraries.rb
598
- - spec/dummy/db/migrate/069_create_shelves.rb
599
- - spec/dummy/db/migrate/073_create_carrier_types.rb
600
- - spec/dummy/db/migrate/077_create_user_groups.rb
601
- - spec/dummy/db/migrate/080_create_library_groups.rb
546
+ - spec/rails_helper.rb
547
+ - spec/models/message_spec.rb
548
+ - spec/models/message_request_spec.rb
549
+ - spec/models/message_template_spec.rb
550
+ - spec/fixtures/message_requests.yml
551
+ - spec/fixtures/user_has_roles.yml
552
+ - spec/fixtures/message_templates.yml
553
+ - spec/fixtures/library_groups.yml
554
+ - spec/fixtures/libraries.yml
555
+ - spec/fixtures/message_request_transitions.yml
556
+ - spec/fixtures/users.yml
557
+ - spec/fixtures/profiles.yml
558
+ - spec/fixtures/agents.yml
559
+ - spec/fixtures/user_groups.yml
560
+ - spec/fixtures/roles.yml
561
+ - spec/fixtures/messages.yml
562
+ - spec/support/devise.rb
563
+ - spec/support/controller_macros.rb
564
+ - spec/views/messages/index.html.erb_spec.rb
565
+ - spec/dummy/db/migrate/20140709113413_create_user_export_files.rb
566
+ - spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb
567
+ - spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb
602
568
  - spec/dummy/db/migrate/112_create_frequencies.rb
603
- - spec/dummy/db/migrate/117_create_form_of_works.rb
604
- - spec/dummy/db/migrate/120_create_baskets.rb
605
- - spec/dummy/db/migrate/124_create_bookstores.rb
606
- - spec/dummy/db/migrate/125_create_donates.rb
607
- - spec/dummy/db/migrate/130_create_request_status_types.rb
608
- - spec/dummy/db/migrate/131_create_request_types.rb
609
- - spec/dummy/db/migrate/133_create_agent_merges.rb
610
- - spec/dummy/db/migrate/134_create_agent_merge_lists.rb
569
+ - spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb
570
+ - spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb
571
+ - spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb
572
+ - spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb
573
+ - spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb
574
+ - spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb
575
+ - spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb
611
576
  - spec/dummy/db/migrate/20080830154109_create_realizes.rb
612
- - spec/dummy/db/migrate/20080830172106_create_exemplifies.rb
613
- - spec/dummy/db/migrate/20080905191442_create_agent_types.rb
577
+ - spec/dummy/db/migrate/20081025083905_create_languages.rb
578
+ - spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb
579
+ - spec/dummy/db/migrate/077_create_user_groups.rb
580
+ - spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
581
+ - spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb
582
+ - spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb
583
+ - spec/dummy/db/migrate/134_create_agent_merge_lists.rb
584
+ - spec/dummy/db/migrate/20140817155043_add_extent_of_text_to_manifestation.rb
585
+ - spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb
586
+ - spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
614
587
  - spec/dummy/db/migrate/20081006090811_create_subscriptions.rb
588
+ - spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb
589
+ - spec/dummy/db/migrate/20090719201843_create_extents.rb
590
+ - spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb
591
+ - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
592
+ - spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb
593
+ - spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb
594
+ - spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb
615
595
  - spec/dummy/db/migrate/20081006093246_create_subscribes.rb
616
- - spec/dummy/db/migrate/20081023092436_create_search_engines.rb
617
- - spec/dummy/db/migrate/20081025083323_create_countries.rb
618
- - spec/dummy/db/migrate/20081025083905_create_languages.rb
619
596
  - spec/dummy/db/migrate/20081027150907_create_picture_files.rb
620
- - spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb
621
- - spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb
622
- - spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
623
- - spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb
624
- - spec/dummy/db/migrate/20090719201843_create_extents.rb
625
- - spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb
626
- - spec/dummy/db/migrate/20090720091429_create_content_types.rb
627
- - spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb
628
- - spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
597
+ - spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb
598
+ - spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
599
+ - spec/dummy/db/migrate/20150924115059_create_withdraws.rb
629
600
  - spec/dummy/db/migrate/20091025080447_create_licenses.rb
630
- - spec/dummy/db/migrate/20091202124834_create_versions.rb
631
- - spec/dummy/db/migrate/20091214131723_create_series_statements.rb
632
- - spec/dummy/db/migrate/20100129142347_create_import_requests.rb
633
- - spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb
634
- - spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb
635
- - spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb
636
- - spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb
637
- - spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb
638
- - spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
639
- - spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
640
- - spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb
641
- - spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb
642
- - spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb
643
- - spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb
644
- - spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb
645
- - spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb
646
- - spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb
647
- - spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb
601
+ - spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb
648
602
  - spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
649
- - spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb
650
- - spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb
651
- - spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
652
- - spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb
653
- - spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb
654
- - spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb
655
- - spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb
656
- - spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb
657
- - spec/dummy/db/migrate/20111124110059_create_create_types.rb
658
- - spec/dummy/db/migrate/20111124110319_create_realize_types.rb
659
- - spec/dummy/db/migrate/20111124110355_create_produce_types.rb
660
- - spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb
661
- - spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb
662
- - spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb
663
- - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
664
- - spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb
665
- - spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb
666
- - spec/dummy/db/migrate/20120319173203_create_accepts.rb
667
- - spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb
668
- - spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb
669
- - spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb
670
- - spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb
671
- - spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb
672
- - spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb
673
- - spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb
674
- - spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb
675
- - spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb
676
- - spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
677
- - spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb
603
+ - spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb
604
+ - spec/dummy/db/migrate/131_create_request_types.rb
605
+ - spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
606
+ - spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb
607
+ - spec/dummy/db/migrate/047_create_produces.rb
608
+ - spec/dummy/db/migrate/20130506175834_create_identifiers.rb
609
+ - spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb
678
610
  - spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb
679
- - spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb
680
- - spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
681
- - spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb
682
- - spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb
611
+ - spec/dummy/db/migrate/124_create_bookstores.rb
612
+ - spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb
613
+ - spec/dummy/db/migrate/120_create_baskets.rb
683
614
  - spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb
684
- - spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb
685
- - spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb
686
- - spec/dummy/db/migrate/20130506175303_create_identifier_types.rb
687
- - spec/dummy/db/migrate/20130506175834_create_identifiers.rb
688
- - spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb
689
- - spec/dummy/db/migrate/20140110122216_create_user_import_files.rb
615
+ - spec/dummy/db/migrate/073_create_carrier_types.rb
616
+ - spec/dummy/db/migrate/117_create_form_of_works.rb
617
+ - spec/dummy/db/migrate/080_create_library_groups.rb
618
+ - spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb
619
+ - spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb
620
+ - spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb
690
621
  - spec/dummy/db/migrate/20140110131010_create_user_import_results.rb
622
+ - spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb
623
+ - spec/dummy/db/migrate/20081023092436_create_search_engines.rb
691
624
  - spec/dummy/db/migrate/20140122054321_create_profiles.rb
692
- - spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb
693
- - spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
694
- - spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
695
- - spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
625
+ - spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb
696
626
  - spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
697
- - spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb
698
- - spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb
699
627
  - spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb
700
- - spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb
701
- - spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb
702
- - spec/dummy/db/migrate/20140709113413_create_user_export_files.rb
703
- - spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
704
- - spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb
628
+ - spec/dummy/db/migrate/20140821151023_create_colors.rb
629
+ - spec/dummy/db/migrate/005_create_manifestations.rb
630
+ - spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb
705
631
  - spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb
632
+ - spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb
633
+ - spec/dummy/db/migrate/20111124110319_create_realize_types.rb
634
+ - spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb
635
+ - spec/dummy/db/migrate/20091202124834_create_versions.rb
636
+ - spec/dummy/db/migrate/002_devise_create_users.rb
637
+ - spec/dummy/db/migrate/041_create_roles.rb
638
+ - spec/dummy/db/migrate/20140110122216_create_user_import_files.rb
639
+ - spec/dummy/db/migrate/20080830172106_create_exemplifies.rb
706
640
  - spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb
707
- - spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb
708
- - spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb
641
+ - spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb
642
+ - spec/dummy/db/migrate/20120129014038_create_budget_types.rb
643
+ - spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb
644
+ - spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb
645
+ - spec/dummy/db/migrate/133_create_agent_merges.rb
646
+ - spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb
647
+ - spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
648
+ - spec/dummy/db/migrate/015_create_creates.rb
649
+ - spec/dummy/db/migrate/20111124110059_create_create_types.rb
650
+ - spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
651
+ - spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb
709
652
  - spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb
710
- - spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb
711
- - spec/dummy/db/migrate/20140817155043_add_extent_of_text_to_manifestation.rb
712
- - spec/dummy/db/migrate/20140821151023_create_colors.rb
653
+ - spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb
654
+ - spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb
655
+ - spec/dummy/db/migrate/20080905191442_create_agent_types.rb
656
+ - spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb
657
+ - spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
713
658
  - spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb
714
- - spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb
715
- - spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb
716
- - spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb
717
- - spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb
718
- - spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb
719
- - spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb
720
- - spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb
721
- - spec/dummy/db/migrate/20150924115059_create_withdraws.rb
659
+ - spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb
660
+ - spec/dummy/db/migrate/125_create_donates.rb
661
+ - spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb
662
+ - spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb
663
+ - spec/dummy/db/migrate/20100129142347_create_import_requests.rb
664
+ - spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb
665
+ - spec/dummy/db/migrate/069_create_shelves.rb
666
+ - spec/dummy/db/migrate/20130506175303_create_identifier_types.rb
667
+ - spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb
668
+ - spec/dummy/db/migrate/130_create_request_status_types.rb
669
+ - spec/dummy/db/migrate/006_create_items.rb
670
+ - spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb
671
+ - spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb
672
+ - spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb
673
+ - spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb
674
+ - spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb
675
+ - spec/dummy/db/migrate/20090720091429_create_content_types.rb
676
+ - spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb
677
+ - spec/dummy/db/migrate/001_create_agents.rb
678
+ - spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb
679
+ - spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb
680
+ - spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb
681
+ - spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb
722
682
  - spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb
723
- - spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
724
- - spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
725
- - spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb
726
- - spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb
727
- - spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb
728
- - spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb
683
+ - spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
684
+ - spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb
685
+ - spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb
686
+ - spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb
687
+ - spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb
688
+ - spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb
689
+ - spec/dummy/db/migrate/059_create_libraries.rb
690
+ - spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb
691
+ - spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb
692
+ - spec/dummy/db/migrate/20081025083323_create_countries.rb
693
+ - spec/dummy/db/migrate/20111124110355_create_produce_types.rb
694
+ - spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb
695
+ - spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb
696
+ - spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb
697
+ - spec/dummy/db/migrate/012_create_owns.rb
698
+ - spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb
699
+ - spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb
700
+ - spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb
729
701
  - spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb
730
- - spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb
702
+ - spec/dummy/db/migrate/20120319173203_create_accepts.rb
703
+ - spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb
704
+ - spec/dummy/db/migrate/20091214131723_create_series_statements.rb
705
+ - spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
706
+ - spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb
731
707
  - spec/dummy/db/schema.rb
708
+ - spec/dummy/config/environment.rb
709
+ - spec/dummy/config/initializers/inflections.rb
710
+ - spec/dummy/config/initializers/backtrace_silencers.rb
711
+ - spec/dummy/config/initializers/devise.rb
712
+ - spec/dummy/config/initializers/friendly_id.rb
713
+ - spec/dummy/config/initializers/mime_types.rb
714
+ - spec/dummy/config/initializers/secret_token.rb
715
+ - spec/dummy/config/initializers/session_store.rb
716
+ - spec/dummy/config/initializers/wrap_parameters.rb
717
+ - spec/dummy/config/environments/test.rb
718
+ - spec/dummy/config/environments/production.rb
719
+ - spec/dummy/config/environments/development.rb
720
+ - spec/dummy/config/routes.rb
721
+ - spec/dummy/config/locales/en.yml
722
+ - spec/dummy/config/boot.rb
723
+ - spec/dummy/config/application.rb
724
+ - spec/dummy/config/database.yml
725
+ - spec/dummy/config.ru
726
+ - spec/dummy/Rakefile
732
727
  - spec/dummy/public/404.html
733
- - spec/dummy/public/422.html
734
728
  - spec/dummy/public/500.html
729
+ - spec/dummy/public/422.html
735
730
  - spec/dummy/public/favicon.ico
736
- - spec/dummy/Rakefile
731
+ - spec/dummy/app/assets/stylesheets/application.css
732
+ - spec/dummy/app/assets/javascripts/application.js
733
+ - spec/dummy/app/models/user.rb
734
+ - spec/dummy/app/views/layouts/application.html.erb
735
+ - spec/dummy/app/controllers/application_controller.rb
736
+ - spec/dummy/app/helpers/application_helper.rb
737
+ - spec/dummy/bin/setup
738
+ - spec/dummy/bin/bundle
739
+ - spec/dummy/bin/rails
740
+ - spec/dummy/bin/rake
737
741
  - spec/factories/library.rb
738
- - spec/factories/message.rb
739
- - spec/factories/message_request.rb
742
+ - spec/factories/user.rb
740
743
  - spec/factories/message_template.rb
741
744
  - spec/factories/profile.rb
742
- - spec/factories/user.rb
743
- - spec/fixtures/agents.yml
744
- - spec/fixtures/libraries.yml
745
- - spec/fixtures/library_groups.yml
746
- - spec/fixtures/message_requests.yml
747
- - spec/fixtures/message_templates.yml
748
- - spec/fixtures/messages.yml
749
- - spec/fixtures/profiles.yml
750
- - spec/fixtures/roles.yml
751
- - spec/fixtures/user_groups.yml
752
- - spec/fixtures/user_has_roles.yml
753
- - spec/fixtures/users.yml
754
- - spec/models/message_request_spec.rb
755
- - spec/models/message_spec.rb
756
- - spec/models/message_template_spec.rb
757
- - spec/rails_helper.rb
745
+ - spec/factories/message_request.rb
746
+ - spec/factories/message.rb
747
+ - spec/controllers/message_templates_controller_spec.rb
748
+ - spec/controllers/messages_controller_spec.rb
749
+ - spec/controllers/message_requests_controller_spec.rb
758
750
  - spec/spec_helper.rb
759
- - spec/support/controller_macros.rb
760
- - spec/support/devise.rb