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