remockable 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -0
- data/.rspec +1 -0
- data/.travis.yml +6 -0
- data/Gemfile +3 -0
- data/LICENSE +1 -1
- data/README.markdown +50 -36
- data/Rakefile +1 -0
- data/lib/remockable/active_model/helpers.rb +2 -0
- data/lib/remockable/active_record/helpers.rb +2 -0
- data/lib/remockable/version.rb +1 -1
- data/remockable.gemspec +23 -0
- data/spec/active_model/allow_mass_assignment_of_spec.rb +86 -0
- data/spec/active_model/allow_values_for_spec.rb +46 -0
- data/spec/active_model/validate_acceptance_of_spec.rb +16 -0
- data/spec/active_model/validate_confirmation_of_spec.rb +14 -0
- data/spec/active_model/validate_exclusion_of_spec.rb +16 -0
- data/spec/active_model/validate_format_of_spec.rb +18 -0
- data/spec/active_model/validate_inclusion_of_spec.rb +16 -0
- data/spec/active_model/validate_length_of_spec.rb +26 -0
- data/spec/active_model/validate_numericality_of_spec.rb +23 -0
- data/spec/active_model/validate_presence_of_spec.rb +14 -0
- data/spec/active_record/accept_nested_attributes_for_spec.rb +47 -0
- data/spec/active_record/belong_to_spec.rb +62 -0
- data/spec/active_record/have_and_belong_to_many_spec.rb +67 -0
- data/spec/active_record/have_column_spec.rb +109 -0
- data/spec/active_record/have_default_scope_spec.rb +169 -0
- data/spec/active_record/have_index_spec.rb +89 -0
- data/spec/active_record/have_many_spec.rb +70 -0
- data/spec/active_record/have_one_spec.rb +61 -0
- data/spec/active_record/have_scope_spec.rb +229 -0
- data/spec/active_record/validate_associated_spec.rb +27 -0
- data/spec/active_record/validate_uniqueness_of_spec.rb +23 -0
- data/spec/spec_helper.rb +17 -0
- data/spec/support/active_record_example_group.rb +22 -0
- data/spec/support/class_builder.rb +39 -0
- data/spec/support/shared/a_validation_matcher.rb +130 -0
- data/spec/support/shared/an_active_record_matcher.rb +53 -0
- metadata +134 -40
metadata
CHANGED
@@ -1,101 +1,143 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remockable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1
|
5
4
|
prerelease:
|
5
|
+
version: 0.1.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Tyler Hunt
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-06-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
|
16
|
-
requirement: &70360985604600 !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '3.0'
|
20
|
+
none: false
|
21
|
+
name: activemodel
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
requirement: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '3.0'
|
28
29
|
none: false
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
32
|
requirements:
|
30
33
|
- - ~>
|
31
34
|
- !ruby/object:Gem::Version
|
32
35
|
version: '3.0'
|
36
|
+
none: false
|
37
|
+
name: activerecord
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
40
|
+
requirement: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '3.0'
|
39
45
|
none: false
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
48
|
requirements:
|
41
49
|
- - ~>
|
42
50
|
- !ruby/object:Gem::Version
|
43
51
|
version: '3.0'
|
52
|
+
none: false
|
53
|
+
name: activesupport
|
44
54
|
type: :runtime
|
45
55
|
prerelease: false
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ~>
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '3.0'
|
50
61
|
none: false
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
64
|
requirements:
|
52
65
|
- - ~>
|
53
66
|
- !ruby/object:Gem::Version
|
54
67
|
version: '2.0'
|
68
|
+
none: false
|
69
|
+
name: rspec-core
|
55
70
|
type: :runtime
|
56
71
|
prerelease: false
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '2.0'
|
61
77
|
none: false
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
62
80
|
requirements:
|
63
81
|
- - ~>
|
64
82
|
- !ruby/object:Gem::Version
|
65
83
|
version: '2.0'
|
84
|
+
none: false
|
85
|
+
name: rspec-expectations
|
66
86
|
type: :runtime
|
67
87
|
prerelease: false
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
88
|
+
requirement: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ~>
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '2.0'
|
72
93
|
none: false
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
96
|
requirements:
|
74
97
|
- - ~>
|
75
98
|
- !ruby/object:Gem::Version
|
76
99
|
version: '2.0'
|
100
|
+
none: false
|
101
|
+
name: rspec-mocks
|
77
102
|
type: :runtime
|
78
103
|
prerelease: false
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
104
|
+
requirement: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ~>
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '2.0'
|
83
109
|
none: false
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
version_requirements: !ruby/object:Gem::Requirement
|
84
112
|
requirements:
|
85
113
|
- - ~>
|
86
114
|
- !ruby/object:Gem::Version
|
87
115
|
version: 1.3.4
|
116
|
+
none: false
|
117
|
+
name: sqlite3
|
88
118
|
type: :development
|
89
119
|
prerelease: false
|
90
|
-
|
120
|
+
requirement: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 1.3.4
|
125
|
+
none: false
|
91
126
|
description:
|
92
127
|
email:
|
93
128
|
executables: []
|
94
129
|
extensions: []
|
95
130
|
extra_rdoc_files: []
|
96
131
|
files:
|
97
|
-
-
|
132
|
+
- .gitignore
|
133
|
+
- .rspec
|
134
|
+
- .travis.yml
|
135
|
+
- Gemfile
|
98
136
|
- LICENSE
|
137
|
+
- README.markdown
|
138
|
+
- Rakefile
|
139
|
+
- lib/remockable.rb
|
140
|
+
- lib/remockable/active_model.rb
|
99
141
|
- lib/remockable/active_model/allow_mass_assignment_of.rb
|
100
142
|
- lib/remockable/active_model/allow_values_for.rb
|
101
143
|
- lib/remockable/active_model/helpers.rb
|
@@ -107,7 +149,7 @@ files:
|
|
107
149
|
- lib/remockable/active_model/validate_length_of.rb
|
108
150
|
- lib/remockable/active_model/validate_numericality_of.rb
|
109
151
|
- lib/remockable/active_model/validate_presence_of.rb
|
110
|
-
- lib/remockable/
|
152
|
+
- lib/remockable/active_record.rb
|
111
153
|
- lib/remockable/active_record/accept_nested_attributes_for.rb
|
112
154
|
- lib/remockable/active_record/belong_to.rb
|
113
155
|
- lib/remockable/active_record/have_and_belong_to_many.rb
|
@@ -120,32 +162,84 @@ files:
|
|
120
162
|
- lib/remockable/active_record/helpers.rb
|
121
163
|
- lib/remockable/active_record/validate_associated.rb
|
122
164
|
- lib/remockable/active_record/validate_uniqueness_of.rb
|
123
|
-
- lib/remockable/active_record.rb
|
124
165
|
- lib/remockable/helpers.rb
|
125
166
|
- lib/remockable/version.rb
|
126
|
-
-
|
167
|
+
- remockable.gemspec
|
168
|
+
- spec/active_model/allow_mass_assignment_of_spec.rb
|
169
|
+
- spec/active_model/allow_values_for_spec.rb
|
170
|
+
- spec/active_model/validate_acceptance_of_spec.rb
|
171
|
+
- spec/active_model/validate_confirmation_of_spec.rb
|
172
|
+
- spec/active_model/validate_exclusion_of_spec.rb
|
173
|
+
- spec/active_model/validate_format_of_spec.rb
|
174
|
+
- spec/active_model/validate_inclusion_of_spec.rb
|
175
|
+
- spec/active_model/validate_length_of_spec.rb
|
176
|
+
- spec/active_model/validate_numericality_of_spec.rb
|
177
|
+
- spec/active_model/validate_presence_of_spec.rb
|
178
|
+
- spec/active_record/accept_nested_attributes_for_spec.rb
|
179
|
+
- spec/active_record/belong_to_spec.rb
|
180
|
+
- spec/active_record/have_and_belong_to_many_spec.rb
|
181
|
+
- spec/active_record/have_column_spec.rb
|
182
|
+
- spec/active_record/have_default_scope_spec.rb
|
183
|
+
- spec/active_record/have_index_spec.rb
|
184
|
+
- spec/active_record/have_many_spec.rb
|
185
|
+
- spec/active_record/have_one_spec.rb
|
186
|
+
- spec/active_record/have_scope_spec.rb
|
187
|
+
- spec/active_record/validate_associated_spec.rb
|
188
|
+
- spec/active_record/validate_uniqueness_of_spec.rb
|
189
|
+
- spec/spec_helper.rb
|
190
|
+
- spec/support/active_record_example_group.rb
|
191
|
+
- spec/support/class_builder.rb
|
192
|
+
- spec/support/shared/a_validation_matcher.rb
|
193
|
+
- spec/support/shared/an_active_record_matcher.rb
|
127
194
|
homepage: http://github.com/tylerhunt/remockable
|
128
|
-
licenses:
|
195
|
+
licenses:
|
196
|
+
- MIT
|
129
197
|
post_install_message:
|
130
198
|
rdoc_options: []
|
131
199
|
require_paths:
|
132
200
|
- lib
|
133
201
|
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
-
none: false
|
135
202
|
requirements:
|
136
203
|
- - ! '>='
|
137
204
|
- !ruby/object:Gem::Version
|
138
205
|
version: '0'
|
139
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
206
|
none: false
|
207
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
208
|
requirements:
|
142
209
|
- - ! '>='
|
143
210
|
- !ruby/object:Gem::Version
|
144
211
|
version: '0'
|
212
|
+
none: false
|
145
213
|
requirements: []
|
146
214
|
rubyforge_project:
|
147
|
-
rubygems_version: 1.8.
|
215
|
+
rubygems_version: 1.8.23
|
148
216
|
signing_key:
|
149
217
|
specification_version: 3
|
150
|
-
summary: A collection of RSpec matchers
|
151
|
-
test_files:
|
218
|
+
summary: A collection of RSpec matchers for web apps.
|
219
|
+
test_files:
|
220
|
+
- spec/active_model/allow_mass_assignment_of_spec.rb
|
221
|
+
- spec/active_model/allow_values_for_spec.rb
|
222
|
+
- spec/active_model/validate_acceptance_of_spec.rb
|
223
|
+
- spec/active_model/validate_confirmation_of_spec.rb
|
224
|
+
- spec/active_model/validate_exclusion_of_spec.rb
|
225
|
+
- spec/active_model/validate_format_of_spec.rb
|
226
|
+
- spec/active_model/validate_inclusion_of_spec.rb
|
227
|
+
- spec/active_model/validate_length_of_spec.rb
|
228
|
+
- spec/active_model/validate_numericality_of_spec.rb
|
229
|
+
- spec/active_model/validate_presence_of_spec.rb
|
230
|
+
- spec/active_record/accept_nested_attributes_for_spec.rb
|
231
|
+
- spec/active_record/belong_to_spec.rb
|
232
|
+
- spec/active_record/have_and_belong_to_many_spec.rb
|
233
|
+
- spec/active_record/have_column_spec.rb
|
234
|
+
- spec/active_record/have_default_scope_spec.rb
|
235
|
+
- spec/active_record/have_index_spec.rb
|
236
|
+
- spec/active_record/have_many_spec.rb
|
237
|
+
- spec/active_record/have_one_spec.rb
|
238
|
+
- spec/active_record/have_scope_spec.rb
|
239
|
+
- spec/active_record/validate_associated_spec.rb
|
240
|
+
- spec/active_record/validate_uniqueness_of_spec.rb
|
241
|
+
- spec/spec_helper.rb
|
242
|
+
- spec/support/active_record_example_group.rb
|
243
|
+
- spec/support/class_builder.rb
|
244
|
+
- spec/support/shared/a_validation_matcher.rb
|
245
|
+
- spec/support/shared/an_active_record_matcher.rb
|