archivist 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,11 +25,11 @@ module Archivist
25
25
  end
26
26
 
27
27
  def get_klass
28
- @klass ||= Kernel.const_get(get_klass_name)
28
+ @klass ||= get_klass_name.constantize
29
29
  end
30
30
 
31
31
  def get_klass_name
32
- @klass_name ||= self.class.to_s.split("::").first
32
+ @klass_name ||= ([ '' ] + self.class.name.split('::')[0..-2]) * '::'
33
33
  end
34
34
 
35
35
  if RUBY_VERSION >= "1.9"
@@ -71,7 +71,7 @@ module Archivist
71
71
  end
72
72
 
73
73
  def archive_for(klass)
74
- "#{klass.to_s}::Archive".constantize
74
+ "::#{klass}::Archive".constantize
75
75
  end
76
76
 
77
77
  def enable_archive_mass_assignment!(klass)
@@ -105,8 +105,8 @@ module Archivist
105
105
  "def copy_self_to_archive
106
106
  self.class.transaction do
107
107
  attrs = self.attributes.merge(:deleted_at=>DateTime.now)
108
- archived = #{self.to_s}::Archive.new(attrs.reject{|k,v| k=='id'})
109
- archived.#{self.to_s.underscore}_id = attrs['id']
108
+ archived = ::#{self}::Archive.new(attrs.reject{|k,v| k=='id'})
109
+ archived.#{table_name.singularize}_id = attrs['id']
110
110
  #{yield_and_save}
111
111
  end
112
112
  end"
@@ -114,7 +114,7 @@ module Archivist
114
114
  "def copy_self_to_archive
115
115
  self.class.transaction do #it would be really shitty for us to loose data in the middle of this
116
116
  attrs = self.attributes.merge(:deleted_at=>DateTime.now)
117
- archived = #{self.to_s}::Archive.new
117
+ archived = ::#{self}::Archive.new
118
118
  if archived.class.where(:id=>self.id).empty? #create a new one if necessary, else update
119
119
  archived.id = attrs[\"id\"]
120
120
  archived.attributes = attrs.reject{|k,v| k=='id'}
@@ -2,7 +2,7 @@ module Archivist
2
2
  module VERSION
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- PATCH = 1
5
+ PATCH = 2
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
@@ -3,14 +3,25 @@ require File.join(File.dirname(__FILE__), 'test_helper')
3
3
  class ArchiveTest < ActiveSupport::TestCase
4
4
  context "The module Archivist::ArchiveMethods" do
5
5
  should "give the Archive subclass the super's methods" do
6
- assert_nothing_raised do
7
- model = SomeModel::Archive.new(:first_name=>"Steve",:last_name=>"Smith")
8
- model.full_name
9
- end
6
+ attrs = {
7
+ first_name: "Steve",
8
+ last_name: 'Smith'
9
+ }
10
+ archive = SomeModel::Archive.new(attrs)
11
+ model = SomeModel.new(attrs)
12
+ assert_equal "Smith, Steve", model.full_name, "Expected the Archive class to return the same result that the original class would"
10
13
  end
11
14
 
12
15
  should "make the Archive subclass respond_to? correctly" do
13
16
  assert SomeModel::Archive.new.respond_to?(:full_name)
14
17
  end
18
+
19
+ should "now about its original class name" do
20
+ assert_equal '::Namespace::MyNamespacedModel', Namespace::MyNamespacedModel::Archive.new.__send__(:get_klass_name)
21
+ end
22
+
23
+ should "now about its original class" do
24
+ assert_equal ::Namespace::MyNamespacedModel, Namespace::MyNamespacedModel::Archive.new.__send__(:get_klass)
25
+ end
15
26
  end
16
27
  end
@@ -14,9 +14,8 @@ class BaseTest < ActiveSupport::TestCase
14
14
 
15
15
  context "Models that call has_archive" do
16
16
  should "have subclass Archive" do
17
- assert_nothing_raised do
18
- archive = SomeModel::Archive
19
- end
17
+ assert SomeModel.constants.include?(:Archive), "Expected SomeModel to have 'Archive' within its constants array"
18
+ assert Namespace::MyNamespacedModel.constants.include?(:Archive), "Expected Namespace::MyNamespacedModel to have 'Archive' within its constans array"
20
19
  end
21
20
 
22
21
  should "respond to archive_indexes as a class method" do
@@ -165,6 +164,28 @@ class BaseTest < ActiveSupport::TestCase
165
164
  assert_equal "Wayne",@archived.first.last_name
166
165
  end
167
166
  end
167
+
168
+ context "when calling #delete on an existing record of a namespaced model with multiple archives" do
169
+ setup do
170
+ @my_model = FactoryGirl.create(:my_namespaced_model)
171
+ @my_model.delete
172
+ end
173
+
174
+ should "archive the record in question" do
175
+ assert Namespace::MyNamespacedModel::Archive.find_by_my_namespaced_model_id(@my_model.id)
176
+ end
177
+ end
178
+
179
+ context "when calling #delete on an existing record of a namespaced model with single archive" do
180
+ setup do
181
+ @my_model = FactoryGirl.create(:my_single_namespaced_model)
182
+ @my_model.delete
183
+ end
184
+
185
+ should "archive the record in question" do
186
+ assert Namespace::MySingleNamespacedModel::Archive.find(@my_model.id)
187
+ end
188
+ end
168
189
 
169
190
  context "when calling #delete! on an existing record" do
170
191
  setup do
@@ -0,0 +1,14 @@
1
+ require 'this_module'
2
+
3
+ module Namespace
4
+ class MyNamespacedModel < ActiveRecord::Base
5
+ attr_accessible :first_name, :last_name, :random_array, :some_hash
6
+ serialize(:random_array,Array)
7
+ serialize(:some_hash,Hash)
8
+ has_archive :indexes=>[:first_name,:last_name],:included_modules=>ThisModule, :allow_multiple_archives => true
9
+
10
+ def full_name
11
+ "#{last_name}, #{first_name}"
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ require 'this_module'
2
+
3
+ module Namespace
4
+ class MySingleNamespacedModel < ActiveRecord::Base
5
+ attr_accessible :first_name, :last_name, :random_array, :some_hash
6
+ serialize(:random_array,Array)
7
+ serialize(:some_hash,Hash)
8
+ has_archive :indexes=>[:first_name,:last_name],:included_modules=>ThisModule, :allow_multiple_archives => false
9
+
10
+ def full_name
11
+ "#{last_name}, #{first_name}"
12
+ end
13
+ end
14
+ end
@@ -38,4 +38,35 @@ ActiveRecord::Schema.define(:version => 0) do
38
38
  t.string "random_array"
39
39
  t.string "some_hash"
40
40
  end
41
- end
41
+
42
+ create_table "archived_my_namespaced_models", :force => true do |t|
43
+ t.integer "my_namespaced_model_id"
44
+ t.string "first_name"
45
+ t.string "last_name"
46
+ t.string "random_array"
47
+ t.string "some_hash"
48
+ t.datetime "deleted_at"
49
+ end
50
+
51
+ create_table "my_namespaced_models", :force => true do |t|
52
+ t.string "first_name"
53
+ t.string "last_name"
54
+ t.string "random_array"
55
+ t.string "some_hash"
56
+ end
57
+
58
+ create_table "archived_my_single_namespaced_models", :force => true do |t|
59
+ t.string "first_name"
60
+ t.string "last_name"
61
+ t.string "random_array"
62
+ t.string "some_hash"
63
+ t.datetime "deleted_at"
64
+ end
65
+
66
+ create_table "my_single_namespaced_models", :force => true do |t|
67
+ t.string "first_name"
68
+ t.string "last_name"
69
+ t.string "random_array"
70
+ t.string "some_hash"
71
+ end
72
+ end
@@ -5,4 +5,8 @@ FactoryGirl.define do
5
5
  random_array [1,2,3,4]
6
6
  some_hash { {:cat => 'Catbert'} }
7
7
  end
8
- end
8
+
9
+ factory :my_namespaced_model, class: Namespace::MyNamespacedModel, parent: :some_model
10
+
11
+ factory :my_single_namespaced_model, class: Namespace::MySingleNamespacedModel, parent: :some_model
12
+ end
metadata CHANGED
@@ -1,269 +1,271 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: archivist
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.2
4
5
  prerelease:
5
- version: 1.1.1
6
6
  platform: ruby
7
- authors:
8
- - Tyler Pickett
7
+ authors:
8
+ - Tyler Pickett
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-07-17 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: activerecord
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 3.0.0
24
- type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: minitest
28
- prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "0"
35
- type: :development
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: rake
39
- prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
46
- type: :development
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: shoulda
50
- prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
57
- type: :development
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
60
- name: appraisal
61
- prerelease: false
62
- requirement: &id005 !ruby/object:Gem::Requirement
63
- none: false
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: "0"
68
- type: :development
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
71
- name: jruby-openssl
72
- prerelease: false
73
- requirement: &id006 !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- version: "0"
79
- type: :development
80
- version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
82
- name: activerecord-jdbcmysql-adapter
83
- prerelease: false
84
- requirement: &id007 !ruby/object:Gem::Requirement
85
- none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: "0"
90
- type: :development
91
- version_requirements: *id007
92
- - !ruby/object:Gem::Dependency
93
- name: ruby-debug
94
- prerelease: false
95
- requirement: &id008 !ruby/object:Gem::Requirement
96
- none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: "0"
101
- type: :development
102
- version_requirements: *id008
103
- - !ruby/object:Gem::Dependency
104
- name: factory_girl
105
- prerelease: false
106
- requirement: &id009 !ruby/object:Gem::Requirement
107
- none: false
108
- requirements:
109
- - - <
110
- - !ruby/object:Gem::Version
111
- version: "3.0"
112
- type: :development
113
- version_requirements: *id009
114
- - !ruby/object:Gem::Dependency
115
- name: rails
116
- prerelease: false
117
- requirement: &id010 !ruby/object:Gem::Requirement
118
- none: false
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- version: 3.0.0
123
- type: :development
124
- version_requirements: *id010
125
- description: |-
126
- This is a functional replacement for acts_as_archive in
127
- rails 3 applications, the only functionality that is not
128
- duplicated is the migration from acts_as_paranoid
129
- email:
130
- - t.pickett66@gmail.com
12
+ date: 2013-01-25 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activerecord
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 3.0.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 3.0.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: minitest
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: shoulda
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: appraisal
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: mysql2
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: debugger
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: factory_girl
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - <
132
+ - !ruby/object:Gem::Version
133
+ version: '3.0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - <
140
+ - !ruby/object:Gem::Version
141
+ version: '3.0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: rails
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: 3.0.0
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: 3.0.0
158
+ description: ! "This is a functional replacement for acts_as_archive in\n rails
159
+ 3 applications, the only functionality that is not\n duplicated
160
+ is the migration from acts_as_paranoid"
161
+ email:
162
+ - t.pickett66@gmail.com
131
163
  executables: []
132
-
133
164
  extensions: []
134
-
135
165
  extra_rdoc_files: []
136
-
137
- files:
138
- - lib/archivist.rb
139
- - lib/archivist/archive.rb
140
- - lib/archivist/base.rb
141
- - lib/archivist/migration.rb
142
- - lib/archivist/version.rb
143
- - lib/archivist/base/db.rb
144
- - lib/tasks/archivist_tasks.rake
145
- - MIT-LICENSE
146
- - Rakefile
147
- - README.rdoc
148
- - test/archive_test.rb
149
- - test/archivist_test.rb
150
- - test/base_test.rb
151
- - test/db_test.rb
152
- - test/migration_test.rb
153
- - test/test_helper.rb
154
- - test/db/migrate/01_add_to_some_models.rb
155
- - test/dummy/config.ru
156
- - test/dummy/Rakefile
157
- - test/dummy/README.rdoc
158
- - test/dummy/app/assets/javascripts/application.js
159
- - test/dummy/app/assets/stylesheets/application.css
160
- - test/dummy/app/controllers/application_controller.rb
161
- - test/dummy/app/helpers/application_helper.rb
162
- - test/dummy/app/models/another_model.rb
163
- - test/dummy/app/models/some_model.rb
164
- - test/dummy/app/views/layouts/application.html.erb
165
- - test/dummy/config/application.rb
166
- - test/dummy/config/boot.rb
167
- - test/dummy/config/database.yml
168
- - test/dummy/config/environment.rb
169
- - test/dummy/config/routes.rb
170
- - test/dummy/config/environments/development.rb
171
- - test/dummy/config/environments/production.rb
172
- - test/dummy/config/environments/test.rb
173
- - test/dummy/config/initializers/backtrace_silencers.rb
174
- - test/dummy/config/initializers/inflections.rb
175
- - test/dummy/config/initializers/mime_types.rb
176
- - test/dummy/config/initializers/secret_token.rb
177
- - test/dummy/config/initializers/session_store.rb
178
- - test/dummy/config/initializers/wrap_parameters.rb
179
- - test/dummy/config/locales/en.yml
180
- - test/dummy/db/schema.rb
181
- - test/dummy/db/test.sqlite3
182
- - test/dummy/lib/this_module.rb
183
- - test/dummy/log/development.log
184
- - test/dummy/log/test.log
185
- - test/dummy/public/404.html
186
- - test/dummy/public/422.html
187
- - test/dummy/public/500.html
188
- - test/dummy/public/favicon.ico
189
- - test/dummy/script/rails
190
- - test/dummy/test/fixtures/another_models.yml
191
- - test/dummy/test/fixtures/some_models.yml
192
- - test/dummy/test/unit/another_model_test.rb
193
- - test/dummy/test/unit/some_model_test.rb
194
- - test/factories/some_model_factory.rb
166
+ files:
167
+ - lib/archivist/archive.rb
168
+ - lib/archivist/base/db.rb
169
+ - lib/archivist/base.rb
170
+ - lib/archivist/migration.rb
171
+ - lib/archivist/version.rb
172
+ - lib/archivist.rb
173
+ - lib/tasks/archivist_tasks.rake
174
+ - MIT-LICENSE
175
+ - Rakefile
176
+ - README.rdoc
177
+ - test/archive_test.rb
178
+ - test/archivist_test.rb
179
+ - test/base_test.rb
180
+ - test/db/migrate/01_add_to_some_models.rb
181
+ - test/db_test.rb
182
+ - test/dummy/app/controllers/application_controller.rb
183
+ - test/dummy/app/helpers/application_helper.rb
184
+ - test/dummy/app/models/another_model.rb
185
+ - test/dummy/app/models/namespace/my_namespaced_model.rb
186
+ - test/dummy/app/models/namespace/my_single_namespaced_model.rb
187
+ - test/dummy/app/models/some_model.rb
188
+ - test/dummy/config/application.rb
189
+ - test/dummy/config/boot.rb
190
+ - test/dummy/config/environment.rb
191
+ - test/dummy/config/environments/development.rb
192
+ - test/dummy/config/environments/production.rb
193
+ - test/dummy/config/environments/test.rb
194
+ - test/dummy/config/initializers/backtrace_silencers.rb
195
+ - test/dummy/config/initializers/inflections.rb
196
+ - test/dummy/config/initializers/mime_types.rb
197
+ - test/dummy/config/initializers/secret_token.rb
198
+ - test/dummy/config/initializers/session_store.rb
199
+ - test/dummy/config/initializers/wrap_parameters.rb
200
+ - test/dummy/config/routes.rb
201
+ - test/dummy/db/schema.rb
202
+ - test/dummy/lib/this_module.rb
203
+ - test/dummy/test/unit/another_model_test.rb
204
+ - test/dummy/test/unit/some_model_test.rb
205
+ - test/factories/some_model_factory.rb
206
+ - test/migration_test.rb
207
+ - test/test_helper.rb
208
+ - test/dummy/config/database.yml
209
+ - test/dummy/config/locales/en.yml
210
+ - test/dummy/test/fixtures/another_models.yml
211
+ - test/dummy/test/fixtures/some_models.yml
195
212
  homepage: http://github.com/tpickett66/archivist
196
213
  licenses: []
197
-
198
214
  post_install_message:
199
215
  rdoc_options: []
200
-
201
- require_paths:
202
- - lib
203
- required_ruby_version: !ruby/object:Gem::Requirement
216
+ require_paths:
217
+ - lib
218
+ required_ruby_version: !ruby/object:Gem::Requirement
204
219
  none: false
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: "0"
209
- required_rubygems_version: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - ! '>='
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ required_rubygems_version: !ruby/object:Gem::Requirement
210
225
  none: false
211
- requirements:
212
- - - ">="
213
- - !ruby/object:Gem::Version
214
- version: "0"
226
+ requirements:
227
+ - - ! '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
215
230
  requirements: []
216
-
217
231
  rubyforge_project:
218
- rubygems_version: 1.8.15
232
+ rubygems_version: 1.8.24
219
233
  signing_key:
220
234
  specification_version: 3
221
235
  summary: A rails 3 model archiving system based on acts_as_archive
222
- test_files:
223
- - test/archive_test.rb
224
- - test/archivist_test.rb
225
- - test/base_test.rb
226
- - test/db_test.rb
227
- - test/migration_test.rb
228
- - test/test_helper.rb
229
- - test/db/migrate/01_add_to_some_models.rb
230
- - test/dummy/config.ru
231
- - test/dummy/Rakefile
232
- - test/dummy/README.rdoc
233
- - test/dummy/app/assets/javascripts/application.js
234
- - test/dummy/app/assets/stylesheets/application.css
235
- - test/dummy/app/controllers/application_controller.rb
236
- - test/dummy/app/helpers/application_helper.rb
237
- - test/dummy/app/models/another_model.rb
238
- - test/dummy/app/models/some_model.rb
239
- - test/dummy/app/views/layouts/application.html.erb
240
- - test/dummy/config/application.rb
241
- - test/dummy/config/boot.rb
242
- - test/dummy/config/database.yml
243
- - test/dummy/config/environment.rb
244
- - test/dummy/config/routes.rb
245
- - test/dummy/config/environments/development.rb
246
- - test/dummy/config/environments/production.rb
247
- - test/dummy/config/environments/test.rb
248
- - test/dummy/config/initializers/backtrace_silencers.rb
249
- - test/dummy/config/initializers/inflections.rb
250
- - test/dummy/config/initializers/mime_types.rb
251
- - test/dummy/config/initializers/secret_token.rb
252
- - test/dummy/config/initializers/session_store.rb
253
- - test/dummy/config/initializers/wrap_parameters.rb
254
- - test/dummy/config/locales/en.yml
255
- - test/dummy/db/schema.rb
256
- - test/dummy/db/test.sqlite3
257
- - test/dummy/lib/this_module.rb
258
- - test/dummy/log/development.log
259
- - test/dummy/log/test.log
260
- - test/dummy/public/404.html
261
- - test/dummy/public/422.html
262
- - test/dummy/public/500.html
263
- - test/dummy/public/favicon.ico
264
- - test/dummy/script/rails
265
- - test/dummy/test/fixtures/another_models.yml
266
- - test/dummy/test/fixtures/some_models.yml
267
- - test/dummy/test/unit/another_model_test.rb
268
- - test/dummy/test/unit/some_model_test.rb
269
- - test/factories/some_model_factory.rb
236
+ test_files:
237
+ - test/archive_test.rb
238
+ - test/archivist_test.rb
239
+ - test/base_test.rb
240
+ - test/db/migrate/01_add_to_some_models.rb
241
+ - test/db_test.rb
242
+ - test/dummy/app/controllers/application_controller.rb
243
+ - test/dummy/app/helpers/application_helper.rb
244
+ - test/dummy/app/models/another_model.rb
245
+ - test/dummy/app/models/namespace/my_namespaced_model.rb
246
+ - test/dummy/app/models/namespace/my_single_namespaced_model.rb
247
+ - test/dummy/app/models/some_model.rb
248
+ - test/dummy/config/application.rb
249
+ - test/dummy/config/boot.rb
250
+ - test/dummy/config/environment.rb
251
+ - test/dummy/config/environments/development.rb
252
+ - test/dummy/config/environments/production.rb
253
+ - test/dummy/config/environments/test.rb
254
+ - test/dummy/config/initializers/backtrace_silencers.rb
255
+ - test/dummy/config/initializers/inflections.rb
256
+ - test/dummy/config/initializers/mime_types.rb
257
+ - test/dummy/config/initializers/secret_token.rb
258
+ - test/dummy/config/initializers/session_store.rb
259
+ - test/dummy/config/initializers/wrap_parameters.rb
260
+ - test/dummy/config/routes.rb
261
+ - test/dummy/db/schema.rb
262
+ - test/dummy/lib/this_module.rb
263
+ - test/dummy/test/unit/another_model_test.rb
264
+ - test/dummy/test/unit/some_model_test.rb
265
+ - test/factories/some_model_factory.rb
266
+ - test/migration_test.rb
267
+ - test/test_helper.rb
268
+ - test/dummy/config/database.yml
269
+ - test/dummy/config/locales/en.yml
270
+ - test/dummy/test/fixtures/another_models.yml
271
+ - test/dummy/test/fixtures/some_models.yml