mongoid-rspec 1.5.0 → 1.11.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.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +14 -2
- data/README.md +188 -108
- data/lib/matchers/accept_nested_attributes.rb +65 -0
- data/lib/matchers/associations.rb +124 -22
- data/lib/matchers/document.rb +43 -4
- data/lib/matchers/indexes.rb +22 -10
- data/lib/matchers/validations/acceptance_of.rb +2 -2
- data/lib/matchers/validations/associated.rb +5 -5
- data/lib/matchers/validations/confirmation_of.rb +2 -2
- data/lib/matchers/validations/custom_validation_of.rb +2 -19
- data/lib/matchers/validations/exclusion_of.rb +8 -1
- data/lib/matchers/validations/format_of.rb +21 -21
- data/lib/matchers/validations/inclusion_of.rb +20 -13
- data/lib/matchers/validations/length_of.rb +66 -19
- data/lib/matchers/validations/numericality_of.rb +10 -10
- data/lib/matchers/validations/presence_of.rb +2 -2
- data/lib/matchers/validations/uniqueness_of.rb +13 -30
- data/lib/matchers/validations/with_message.rb +27 -0
- data/lib/matchers/validations.rb +45 -26
- data/lib/mongoid-rspec/version.rb +1 -1
- data/lib/mongoid-rspec.rb +5 -1
- data/mongoid-rspec.gemspec +2 -2
- data/spec/models/article.rb +18 -9
- data/spec/models/comment.rb +2 -2
- data/spec/models/movie_article.rb +6 -5
- data/spec/models/permalink.rb +1 -1
- data/spec/models/person.rb +0 -3
- data/spec/models/profile.rb +9 -7
- data/spec/models/record.rb +1 -1
- data/spec/models/site.rb +2 -3
- data/spec/models/user.rb +20 -12
- data/spec/unit/accept_nested_attributes_spec.rb +12 -0
- data/spec/unit/allow_mass_assignment_spec.rb +1 -1
- data/spec/unit/associations_spec.rb +6 -6
- data/spec/unit/document_spec.rb +8 -5
- data/spec/unit/indexes_spec.rb +3 -2
- data/spec/unit/validations_spec.rb +8 -0
- data/spec/validators/ssn_validator.rb +3 -1
- metadata +40 -28
- data/.rvmrc +0 -1
metadata
CHANGED
|
@@ -1,49 +1,57 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mongoid-rspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 1.11.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Evan Sagge
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 2014-02-15 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: rake
|
|
16
|
-
requirement:
|
|
17
|
-
none: false
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
18
16
|
requirements:
|
|
19
|
-
- -
|
|
17
|
+
- - ">="
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
21
19
|
version: '0'
|
|
22
20
|
type: :runtime
|
|
23
21
|
prerelease: false
|
|
24
|
-
version_requirements:
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
25
27
|
- !ruby/object:Gem::Dependency
|
|
26
28
|
name: mongoid
|
|
27
|
-
requirement:
|
|
28
|
-
none: false
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
30
|
requirements:
|
|
30
|
-
- -
|
|
31
|
+
- - "~>"
|
|
31
32
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 3.
|
|
33
|
+
version: 3.1.6
|
|
33
34
|
type: :runtime
|
|
34
35
|
prerelease: false
|
|
35
|
-
version_requirements:
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 3.1.6
|
|
36
41
|
- !ruby/object:Gem::Dependency
|
|
37
42
|
name: rspec
|
|
38
|
-
requirement:
|
|
39
|
-
none: false
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
40
44
|
requirements:
|
|
41
|
-
- -
|
|
45
|
+
- - ">="
|
|
42
46
|
- !ruby/object:Gem::Version
|
|
43
|
-
version: '2.
|
|
47
|
+
version: '2.14'
|
|
44
48
|
type: :runtime
|
|
45
49
|
prerelease: false
|
|
46
|
-
version_requirements:
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '2.14'
|
|
47
55
|
description: RSpec matches for Mongoid models, including association and validation
|
|
48
56
|
matchers
|
|
49
57
|
email: evansagge@gmail.com
|
|
@@ -51,15 +59,17 @@ executables: []
|
|
|
51
59
|
extensions: []
|
|
52
60
|
extra_rdoc_files: []
|
|
53
61
|
files:
|
|
54
|
-
- .bundle/config
|
|
55
|
-
- .document
|
|
56
|
-
- .gitignore
|
|
57
|
-
- .
|
|
58
|
-
- .
|
|
62
|
+
- ".bundle/config"
|
|
63
|
+
- ".document"
|
|
64
|
+
- ".gitignore"
|
|
65
|
+
- ".ruby-gemset"
|
|
66
|
+
- ".ruby-version"
|
|
67
|
+
- ".travis.yml"
|
|
59
68
|
- Gemfile
|
|
60
69
|
- LICENSE
|
|
61
70
|
- README.md
|
|
62
71
|
- Rakefile
|
|
72
|
+
- lib/matchers/accept_nested_attributes.rb
|
|
63
73
|
- lib/matchers/allow_mass_assignment.rb
|
|
64
74
|
- lib/matchers/associations.rb
|
|
65
75
|
- lib/matchers/collections.rb
|
|
@@ -77,6 +87,7 @@ files:
|
|
|
77
87
|
- lib/matchers/validations/numericality_of.rb
|
|
78
88
|
- lib/matchers/validations/presence_of.rb
|
|
79
89
|
- lib/matchers/validations/uniqueness_of.rb
|
|
90
|
+
- lib/matchers/validations/with_message.rb
|
|
80
91
|
- lib/mongoid-rspec.rb
|
|
81
92
|
- lib/mongoid-rspec/version.rb
|
|
82
93
|
- mongoid-rspec.gemspec
|
|
@@ -91,6 +102,7 @@ files:
|
|
|
91
102
|
- spec/models/site.rb
|
|
92
103
|
- spec/models/user.rb
|
|
93
104
|
- spec/spec_helper.rb
|
|
105
|
+
- spec/unit/accept_nested_attributes_spec.rb
|
|
94
106
|
- spec/unit/allow_mass_assignment_spec.rb
|
|
95
107
|
- spec/unit/associations_spec.rb
|
|
96
108
|
- spec/unit/collections_spec.rb
|
|
@@ -100,27 +112,26 @@ files:
|
|
|
100
112
|
- spec/validators/ssn_validator.rb
|
|
101
113
|
homepage: http://github.com/evansagge/mongoid-rspec
|
|
102
114
|
licenses: []
|
|
115
|
+
metadata: {}
|
|
103
116
|
post_install_message:
|
|
104
117
|
rdoc_options: []
|
|
105
118
|
require_paths:
|
|
106
119
|
- lib
|
|
107
120
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
108
|
-
none: false
|
|
109
121
|
requirements:
|
|
110
|
-
- -
|
|
122
|
+
- - ">="
|
|
111
123
|
- !ruby/object:Gem::Version
|
|
112
124
|
version: '0'
|
|
113
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
|
-
none: false
|
|
115
126
|
requirements:
|
|
116
|
-
- -
|
|
127
|
+
- - ">="
|
|
117
128
|
- !ruby/object:Gem::Version
|
|
118
129
|
version: '0'
|
|
119
130
|
requirements: []
|
|
120
131
|
rubyforge_project: mongoid-rspec
|
|
121
|
-
rubygems_version:
|
|
132
|
+
rubygems_version: 2.2.2
|
|
122
133
|
signing_key:
|
|
123
|
-
specification_version:
|
|
134
|
+
specification_version: 4
|
|
124
135
|
summary: RSpec matchers for Mongoid
|
|
125
136
|
test_files:
|
|
126
137
|
- spec/models/article.rb
|
|
@@ -134,6 +145,7 @@ test_files:
|
|
|
134
145
|
- spec/models/site.rb
|
|
135
146
|
- spec/models/user.rb
|
|
136
147
|
- spec/spec_helper.rb
|
|
148
|
+
- spec/unit/accept_nested_attributes_spec.rb
|
|
137
149
|
- spec/unit/allow_mass_assignment_spec.rb
|
|
138
150
|
- spec/unit/associations_spec.rb
|
|
139
151
|
- spec/unit/collections_spec.rb
|
data/.rvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
rvm use --create 1.9.3@mongoid-rspec
|