mongoid-rspec 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE +1 -1
  3. data/README.md +217 -111
  4. data/Rakefile +8 -5
  5. data/lib/matchers/accept_nested_attributes.rb +22 -23
  6. data/lib/matchers/allow_mass_assignment.rb +12 -12
  7. data/lib/matchers/associations.rb +36 -37
  8. data/lib/matchers/be_dynamic_document.rb +26 -0
  9. data/lib/matchers/be_mongoid_document.rb +26 -0
  10. data/lib/matchers/be_stored_in.rb +55 -0
  11. data/lib/matchers/have_field.rb +90 -0
  12. data/lib/matchers/have_timestamps.rb +61 -0
  13. data/lib/matchers/indexes/have_index_for.rb +16 -0
  14. data/lib/matchers/indexes/v3/have_index_for.rb +59 -0
  15. data/lib/matchers/indexes/v4/have_index_for.rb +54 -0
  16. data/lib/matchers/validations.rb +30 -11
  17. data/lib/matchers/validations/associated.rb +1 -1
  18. data/lib/matchers/validations/confirmation_of.rb +0 -7
  19. data/lib/matchers/validations/custom_validation_of.rb +1 -4
  20. data/lib/matchers/validations/exclusion_of.rb +5 -5
  21. data/lib/matchers/validations/format_of.rb +2 -2
  22. data/lib/matchers/validations/inclusion_of.rb +5 -5
  23. data/lib/matchers/validations/length_of.rb +13 -35
  24. data/lib/matchers/validations/numericality_of.rb +32 -16
  25. data/lib/matchers/validations/presence_of.rb +1 -1
  26. data/lib/matchers/validations/uniqueness_of.rb +7 -10
  27. data/lib/mongoid/rspec.rb +17 -5
  28. data/lib/mongoid/rspec/version.rb +2 -2
  29. data/spec/models/article.rb +6 -6
  30. data/spec/models/comment.rb +1 -1
  31. data/spec/models/log.rb +3 -3
  32. data/spec/models/message.rb +11 -0
  33. data/spec/models/movie_article.rb +1 -2
  34. data/spec/models/person.rb +1 -1
  35. data/spec/models/profile.rb +2 -2
  36. data/spec/models/record.rb +1 -1
  37. data/spec/models/user.rb +11 -11
  38. data/spec/spec_helper.rb +9 -9
  39. data/spec/unit/accept_nested_attributes_spec.rb +1 -1
  40. data/spec/unit/associations_spec.rb +11 -7
  41. data/spec/unit/be_dynamic_document_spec.rb +21 -0
  42. data/spec/unit/be_mongoid_document_spec.rb +25 -0
  43. data/spec/unit/be_stored_in.rb +54 -0
  44. data/spec/unit/document_spec.rb +5 -14
  45. data/spec/unit/have_index_for_spec.rb +46 -0
  46. data/spec/unit/have_timestamps_spec.rb +71 -0
  47. data/spec/unit/validations_spec.rb +22 -15
  48. data/spec/validators/ssn_validator.rb +6 -6
  49. metadata +63 -29
  50. data/.document +0 -5
  51. data/.gitignore +0 -6
  52. data/.ruby-gemset +0 -1
  53. data/.ruby-version +0 -1
  54. data/.travis.yml +0 -10
  55. data/Gemfile +0 -4
  56. data/lib/matchers/collections.rb +0 -9
  57. data/lib/matchers/document.rb +0 -173
  58. data/lib/matchers/indexes.rb +0 -69
  59. data/lib/matchers/validations/with_message.rb +0 -27
  60. data/mongoid-rspec.gemspec +0 -26
  61. data/spec/unit/collections_spec.rb +0 -7
  62. data/spec/unit/indexes_spec.rb +0 -17
@@ -0,0 +1,54 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe Mongoid::Matchers::BeStoredIn do
4
+ subject do
5
+ Class.new do
6
+ include Mongoid::Document
7
+ store_in collection: 'citizens', database: 'other', client: 'secondary'
8
+ end
9
+ end
10
+
11
+ it 'detects storage options' do
12
+ is_expected.to be_stored_in(collection: 'citizens', database: 'other', client: 'secondary')
13
+ end
14
+
15
+ it 'detects even part of storage options' do
16
+ is_expected.to be_stored_in(database: 'other')
17
+ is_expected.to be_stored_in(client: 'secondary')
18
+ is_expected.to be_stored_in(collection: 'citizens')
19
+ is_expected.to be_stored_in(collection: 'citizens', database: 'other')
20
+ is_expected.to be_stored_in(database: 'other', client: 'secondary')
21
+ is_expected.to be_stored_in(collection: 'citizens', client: 'secondary')
22
+ end
23
+
24
+ it 'detects differences' do
25
+ is_expected.not_to be_stored_in(collection: 'aliens')
26
+ end
27
+
28
+ context 'when models has storage options defined via blocks, procs or lambdas' do
29
+ subject do
30
+ Class.new do
31
+ include Mongoid::Document
32
+ store_in database: -> { Thread.current[:database] }
33
+ end
34
+ end
35
+
36
+ before do
37
+ Thread.current[:database] = 'db1981'
38
+ end
39
+
40
+ it 'detects storage options' do
41
+ is_expected.to be_stored_in(database: 'db1981')
42
+ end
43
+
44
+ it 'reflects changes in storage options' do
45
+ is_expected.to be_stored_in(database: 'db1981')
46
+ Thread.current[:database] = 'db2200'
47
+ is_expected.to be_stored_in(database: 'db2200')
48
+ end
49
+
50
+ it 'detects differences' do
51
+ is_expected.not_to be_stored_in(database: 'other')
52
+ end
53
+ end
54
+ end
@@ -1,26 +1,17 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.describe "Document" do
3
+ RSpec.describe 'Document' do
4
4
  describe User do
5
5
  it { is_expected.to have_fields(:email, :login) }
6
- it { is_expected.to be_timestamped_document }
7
- it { is_expected.to be_timestamped_document.with(:created) }
8
- it { is_expected.not_to be_timestamped_document.with(:updated) }
9
6
  end
10
7
 
11
8
  describe Article do
12
- it { is_expected.to have_field(:published).of_type(Mongoid::Boolean).with_default_value_of(false) }
13
- it { is_expected.to have_field(:allow_comments).of_type(Mongoid::Boolean).with_default_value_of(true) }
9
+ klass_boolean = Mongoid::Compatibility::Version.mongoid4_or_newer? ? Mongoid::Boolean : Boolean
10
+ it { is_expected.to have_field(:published).of_type(klass_boolean).with_default_value_of(false) }
11
+ it { is_expected.to have_field(:allow_comments).of_type(klass_boolean).with_default_value_of(true) }
14
12
  it { is_expected.to belong_to(:author) }
15
13
  it { is_expected.to have_field(:title).localized }
16
- it { is_expected.not_to have_field(:allow_comments).of_type(Mongoid::Boolean).with_default_value_of(false) }
14
+ it { is_expected.not_to have_field(:allow_comments).of_type(klass_boolean).with_default_value_of(false) }
17
15
  it { is_expected.not_to have_field(:number_of_comments).of_type(Integer).with_default_value_of(1) }
18
- it { is_expected.to be_mongoid_document }
19
- it { is_expected.to be_timestamped_document }
20
- end
21
-
22
- describe Log do
23
- it { is_expected.to be_mongoid_document }
24
- it { is_expected.to be_dynamic_document }
25
16
  end
26
17
  end
@@ -0,0 +1,46 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe Mongoid::Matchers::HaveIndexFor do
4
+ subject do
5
+ Class.new do
6
+ include Mongoid::Document
7
+
8
+ field :fizz, as: :buzz, type: String
9
+
10
+ index(foo: 1)
11
+ index({ bar: 1 }, unique: true, background: true, drop_dups: true)
12
+ index(foo: 1, bar: -1)
13
+ index('baz._id' => 1)
14
+ index(buzz: 1)
15
+ end
16
+ end
17
+
18
+ it 'detects an index for singular field key' do
19
+ is_expected.to have_index_for(foo: 1)
20
+ end
21
+
22
+ it 'detects an index for multipple fields key' do
23
+ is_expected.to have_index_for(foo: 1, bar: -1)
24
+ end
25
+
26
+ it 'detects an index with options' do
27
+ is_expected
28
+ .to have_index_for(bar: 1)
29
+ .with_options(unique: true, background: true, drop_dups: true)
30
+ end
31
+
32
+ it 'detects an index with only part of options' do
33
+ is_expected
34
+ .to have_index_for(bar: 1)
35
+ .with_options(unique: true)
36
+ end
37
+
38
+ it 'detects an index for string key' do
39
+ is_expected.to have_index_for('baz._id' => 1)
40
+ end
41
+
42
+ it 'detect an index for aliased fields' do
43
+ is_expected.to have_index_for(fizz: 1)
44
+ is_expected.to have_index_for(buzz: 1) if Mongoid::Compatibility::Version.mongoid4_or_newer?
45
+ end
46
+ end
@@ -0,0 +1,71 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe Mongoid::Matchers::HaveTimestamps do
4
+ context 'when model includes Mongoid::Timestamps' do
5
+ subject do
6
+ Class.new do
7
+ include Mongoid::Document
8
+ include Mongoid::Timestamps
9
+ end
10
+ end
11
+
12
+ it { is_expected.to have_timestamps }
13
+ end
14
+
15
+ context 'when model includes Mongoid::Timestamps::Short' do
16
+ subject do
17
+ Class.new do
18
+ include Mongoid::Document
19
+ include Mongoid::Timestamps::Short
20
+ end
21
+ end
22
+
23
+ it { is_expected.to have_timestamps.shortened }
24
+ end
25
+
26
+ context 'when model includes Mongoid::Timestamps::Updated' do
27
+ subject do
28
+ Class.new do
29
+ include Mongoid::Document
30
+ include Mongoid::Timestamps::Updated
31
+ end
32
+ end
33
+
34
+ it { is_expected.to have_timestamps.for(:updating) }
35
+ end
36
+
37
+ context 'when model includes Mongoid::Timestamps::Updated::Short' do
38
+ subject do
39
+ Class.new do
40
+ include Mongoid::Document
41
+ include Mongoid::Timestamps::Updated::Short
42
+ end
43
+ end
44
+
45
+ it { is_expected.to have_timestamps.for(:updating).shortened }
46
+ it { is_expected.to have_timestamps.shortened.for(:updating) }
47
+ end
48
+
49
+ context 'when model includes Mongoid::Timestamps::Created' do
50
+ subject do
51
+ Class.new do
52
+ include Mongoid::Document
53
+ include Mongoid::Timestamps::Created
54
+ end
55
+ end
56
+
57
+ it { is_expected.to have_timestamps.for(:creating) }
58
+ end
59
+
60
+ context 'when model includes Mongoid::Timestamps::Created::Short' do
61
+ subject do
62
+ Class.new do
63
+ include Mongoid::Document
64
+ include Mongoid::Timestamps::Created::Short
65
+ end
66
+ end
67
+
68
+ it { is_expected.to have_timestamps.for(:creating).shortened }
69
+ it { is_expected.to have_timestamps.shortened.for(:creating) }
70
+ end
71
+ end
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.describe "Validations" do
3
+ RSpec.describe 'Validations' do
4
4
  describe Site do
5
5
  it { is_expected.to validate_presence_of(:name) }
6
6
  it { is_expected.to validate_uniqueness_of(:name) }
@@ -9,45 +9,52 @@ RSpec.describe "Validations" do
9
9
  describe User do
10
10
  it { is_expected.to validate_presence_of(:login) }
11
11
  it { is_expected.to validate_uniqueness_of(:login).scoped_to(:site) }
12
- it { is_expected.to validate_uniqueness_of(:email).case_insensitive.with_message("is already taken") }
13
- it { is_expected.to validate_format_of(:login).to_allow("valid_login").not_to_allow("invalid login") }
12
+ it { is_expected.to validate_uniqueness_of(:email).case_insensitive.with_message('is already taken') }
13
+ it { is_expected.to validate_format_of(:login).to_allow('valid_login').not_to_allow('invalid login') }
14
14
  it { is_expected.to validate_associated(:profile) }
15
- it { is_expected.to validate_exclusion_of(:login).to_not_allow("super", "index", "edit") }
16
- it { is_expected.to validate_exclusion_of(:password).to_not_allow("password") }
17
- it { is_expected.to validate_inclusion_of(:role).to_allow("admin", "member") }
18
- it { is_expected.to validate_inclusion_of(:role).to_allow(["admin", "member"]) }
15
+ it { is_expected.to validate_exclusion_of(:login).to_not_allow('super', 'index', 'edit') }
16
+ it { is_expected.to validate_exclusion_of(:password).to_not_allow('password') }
17
+ it { is_expected.to validate_inclusion_of(:role).to_allow('admin', 'member') }
18
+ it { is_expected.to validate_inclusion_of(:role).to_allow(%w[admin member]) }
19
19
  it { is_expected.to validate_confirmation_of(:email) }
20
20
  it { is_expected.to validate_presence_of(:age).on(:create, :update) }
21
21
  it { is_expected.to validate_numericality_of(:age).on(:create, :update) }
22
- it { is_expected.to validate_inclusion_of(:age).to_allow(23..42).on([:create, :update]) }
22
+ it { is_expected.to validate_inclusion_of(:age).to_allow(23..42).on(%i[create update]) }
23
23
  it { is_expected.to validate_presence_of(:password).on(:create) }
24
- it { is_expected.to validate_confirmation_of(:password).with_message("Password confirmation must match given password") }
24
+ it { is_expected.to validate_confirmation_of(:password).with_message('Password confirmation must match given password') }
25
25
  it { is_expected.to validate_presence_of(:provider_uid).on(:create) }
26
- it { is_expected.to validate_inclusion_of(:locale).to_allow([:en, :ru]) }
26
+ it { is_expected.to validate_inclusion_of(:locale).to_allow(%i[en ru]) }
27
27
  end
28
28
 
29
29
  describe Profile do
30
30
  it { is_expected.to validate_numericality_of(:age).greater_than(0) }
31
+ it { is_expected.not_to validate_numericality_of(:age).greater_than(0).only_integer(true) }
31
32
  it { is_expected.to validate_acceptance_of(:terms_of_service) }
32
- it { is_expected.to validate_length_of(:hobbies).with_minimum(1).with_message("requires at least one hobby") }
33
+ it { is_expected.to validate_length_of(:hobbies).with_minimum(1).with_message('requires at least one hobby') }
33
34
  end
34
35
 
35
36
  describe Article do
36
37
  it { is_expected.to validate_length_of(:title).within(8..16) }
37
38
  it { is_expected.not_to validate_length_of(:content).greater_than(200).less_than(16) }
38
39
  it { is_expected.to validate_length_of(:content).greater_than(200) }
39
- it { is_expected.to validate_inclusion_of(:status).to_allow([:pending]).on( :create ) }
40
- it { is_expected.to validate_inclusion_of(:status).to_allow([:approved, :rejected]).on( :update ) }
40
+ it { is_expected.to validate_inclusion_of(:status).to_allow([:pending]).on(:create) }
41
+ it { is_expected.to validate_inclusion_of(:status).to_allow(%i[approved rejected]).on(:update) }
41
42
  end
42
43
 
43
44
  describe MovieArticle do
44
45
  it { is_expected.to validate_numericality_of(:rating).greater_than(0) }
45
- it { is_expected.to validate_numericality_of(:rating).to_allow(:greater_than => 0).less_than_or_equal_to(5) }
46
- it { is_expected.to validate_numericality_of(:classification).to_allow(:even => true, :only_integer => true, :nil => false) }
46
+ it { is_expected.to validate_numericality_of(:rating).to_allow(greater_than: 0).less_than_or_equal_to(5) }
47
+ it { is_expected.to validate_numericality_of(:classification).to_allow(even: true, only_integer: true, nil: false) }
47
48
  end
48
49
 
49
50
  describe Person do
50
51
  it { is_expected.to custom_validate(:ssn).with_validator(SsnValidator) }
51
52
  it { is_expected.not_to custom_validate(:name) }
52
53
  end
54
+
55
+ describe Message do
56
+ it { is_expected.to validate_uniqueness_of(:identifier).with_message('uniqueness') }
57
+ it { is_expected.to validate_presence_of(:from).with_message('required') }
58
+ it { is_expected.to validate_format_of(:to).with_message('format') }
59
+ end
53
60
  end
@@ -1,16 +1,16 @@
1
- class SsnValidator < ActiveModel::EachValidator
2
-
1
+ class SsnValidator < ActiveModel::EachValidator
3
2
  def validate_each(record, attribute, value)
4
3
  unless valid_ssn?(record, attribute, value)
5
4
  record.errors[attribute] << "#{value} is not a valid Social Security Number"
6
5
  end
7
6
  end
8
7
 
9
- def self.kind() :custom end
8
+ def self.kind
9
+ :custom
10
+ end
10
11
 
11
- def valid_ssn?(record, attribute, value)
12
+ def valid_ssn?(_record, _attribute, _value)
12
13
  # irrelevant here how validation is done
13
14
  true
14
15
  end
15
-
16
- end
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Sagge
@@ -9,36 +9,36 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-16 00:00:00.000000000 Z
12
+ date: 2018-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rake
15
+ name: activesupport
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: 3.0.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '0'
27
+ version: 3.0.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: mongoid
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '5.0'
34
+ version: '2.0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '5.0'
41
+ version: '2.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -53,28 +53,55 @@ dependencies:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '3.3'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rake
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '10.0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '10.0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: mongoid-compatibility
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
56
84
  description: RSpec matches for Mongoid models, including association and validation
57
- matchers
85
+ matchers.
58
86
  email: evansagge@gmail.com contato@rodrigopinto.me
59
87
  executables: []
60
88
  extensions: []
61
89
  extra_rdoc_files: []
62
90
  files:
63
- - ".document"
64
- - ".gitignore"
65
- - ".ruby-gemset"
66
- - ".ruby-version"
67
- - ".travis.yml"
68
- - Gemfile
69
91
  - LICENSE
70
92
  - README.md
71
93
  - Rakefile
72
94
  - lib/matchers/accept_nested_attributes.rb
73
95
  - lib/matchers/allow_mass_assignment.rb
74
96
  - lib/matchers/associations.rb
75
- - lib/matchers/collections.rb
76
- - lib/matchers/document.rb
77
- - lib/matchers/indexes.rb
97
+ - lib/matchers/be_dynamic_document.rb
98
+ - lib/matchers/be_mongoid_document.rb
99
+ - lib/matchers/be_stored_in.rb
100
+ - lib/matchers/have_field.rb
101
+ - lib/matchers/have_timestamps.rb
102
+ - lib/matchers/indexes/have_index_for.rb
103
+ - lib/matchers/indexes/v3/have_index_for.rb
104
+ - lib/matchers/indexes/v4/have_index_for.rb
78
105
  - lib/matchers/validations.rb
79
106
  - lib/matchers/validations/acceptance_of.rb
80
107
  - lib/matchers/validations/associated.rb
@@ -87,14 +114,13 @@ files:
87
114
  - lib/matchers/validations/numericality_of.rb
88
115
  - lib/matchers/validations/presence_of.rb
89
116
  - lib/matchers/validations/uniqueness_of.rb
90
- - lib/matchers/validations/with_message.rb
91
117
  - lib/mongoid-rspec.rb
92
118
  - lib/mongoid/rspec.rb
93
119
  - lib/mongoid/rspec/version.rb
94
- - mongoid-rspec.gemspec
95
120
  - spec/models/article.rb
96
121
  - spec/models/comment.rb
97
122
  - spec/models/log.rb
123
+ - spec/models/message.rb
98
124
  - spec/models/movie_article.rb
99
125
  - spec/models/permalink.rb
100
126
  - spec/models/person.rb
@@ -105,13 +131,17 @@ files:
105
131
  - spec/spec_helper.rb
106
132
  - spec/unit/accept_nested_attributes_spec.rb
107
133
  - spec/unit/associations_spec.rb
108
- - spec/unit/collections_spec.rb
134
+ - spec/unit/be_dynamic_document_spec.rb
135
+ - spec/unit/be_mongoid_document_spec.rb
136
+ - spec/unit/be_stored_in.rb
109
137
  - spec/unit/document_spec.rb
110
- - spec/unit/indexes_spec.rb
138
+ - spec/unit/have_index_for_spec.rb
139
+ - spec/unit/have_timestamps_spec.rb
111
140
  - spec/unit/validations_spec.rb
112
141
  - spec/validators/ssn_validator.rb
113
142
  homepage: http://github.com/mongoid-rspec/mongoid-rspec
114
- licenses: []
143
+ licenses:
144
+ - MIT
115
145
  metadata: {}
116
146
  post_install_message:
117
147
  rdoc_options: []
@@ -121,15 +151,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
151
  requirements:
122
152
  - - ">="
123
153
  - !ruby/object:Gem::Version
124
- version: '0'
154
+ version: '2.2'
125
155
  required_rubygems_version: !ruby/object:Gem::Requirement
126
156
  requirements:
127
157
  - - ">="
128
158
  - !ruby/object:Gem::Version
129
- version: '0'
159
+ version: 1.3.6
130
160
  requirements: []
131
161
  rubyforge_project: mongoid-rspec
132
- rubygems_version: 2.4.5.1
162
+ rubygems_version: 2.7.3
133
163
  signing_key:
134
164
  specification_version: 4
135
165
  summary: RSpec matchers for Mongoid
@@ -137,6 +167,7 @@ test_files:
137
167
  - spec/models/article.rb
138
168
  - spec/models/comment.rb
139
169
  - spec/models/log.rb
170
+ - spec/models/message.rb
140
171
  - spec/models/movie_article.rb
141
172
  - spec/models/permalink.rb
142
173
  - spec/models/person.rb
@@ -147,8 +178,11 @@ test_files:
147
178
  - spec/spec_helper.rb
148
179
  - spec/unit/accept_nested_attributes_spec.rb
149
180
  - spec/unit/associations_spec.rb
150
- - spec/unit/collections_spec.rb
181
+ - spec/unit/be_dynamic_document_spec.rb
182
+ - spec/unit/be_mongoid_document_spec.rb
183
+ - spec/unit/be_stored_in.rb
151
184
  - spec/unit/document_spec.rb
152
- - spec/unit/indexes_spec.rb
185
+ - spec/unit/have_index_for_spec.rb
186
+ - spec/unit/have_timestamps_spec.rb
153
187
  - spec/unit/validations_spec.rb
154
188
  - spec/validators/ssn_validator.rb