rspec-activemodel-mocks 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +4 -0
- data/License.txt +23 -0
- data/README.md +70 -0
- data/features/mocks/mock_model.feature +147 -0
- data/features/mocks/stub_model.feature +58 -0
- data/features/step_definitions/additional_cli_steps.rb +4 -0
- data/features/step_definitions/model_steps.rb +3 -0
- data/features/support/env.rb +53 -0
- data/features/support/rubinius.rb +6 -0
- data/lib/rspec/active_model/mocks/mocks.rb +271 -0
- data/lib/rspec/active_model/mocks/version.rb +9 -0
- data/lib/rspec/active_model/mocks.rb +8 -0
- data/lib/rspec-activemodel-mocks.rb +1 -0
- data/spec/rspec/active_model/mocks/mock_model_spec.rb +435 -0
- data/spec/rspec/active_model/mocks/stub_model_spec.rb +154 -0
- data/spec/spec_helper.rb +26 -0
- data/spec/support/ar_classes.rb +42 -0
- data/spec/support/helpers.rb +34 -0
- data/spec/support/matchers.rb +9 -0
- data/spec/support/minitest_support.rb +12 -0
- data/spec/support/null_object.rb +6 -0
- metadata +194 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
# Minitest requires you provide an assertions ivar for the context
|
2
|
+
# it is running within. We need this so that ActiveModel::Lint tests
|
3
|
+
# can successfully be run.
|
4
|
+
module MinitestAssertion
|
5
|
+
def assertions
|
6
|
+
@assertions ||= 0
|
7
|
+
end
|
8
|
+
|
9
|
+
def assertions=(value)
|
10
|
+
@assertions = value
|
11
|
+
end
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,194 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rspec-activemodel-mocks
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.beta1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- David Chelimsky
|
8
|
+
- Andy Lindeman
|
9
|
+
- Thomas Holmes
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2014-04-27 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: activesupport
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - ">="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '3.0'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: activemodel
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '3.0'
|
36
|
+
type: :runtime
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '3.0'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: rspec-mocks
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 2.99.0.beta2
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.99.0.beta2
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: rake
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 10.0.0
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 10.0.0
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: cucumber
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.3.5
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - "~>"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 1.3.5
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: aruba
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 0.4.11
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - "~>"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 0.4.11
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: ZenTest
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: 4.9.5
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - "~>"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 4.9.5
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: activerecord
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '3.0'
|
120
|
+
type: :development
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '3.0'
|
127
|
+
description: RSpec test doubles for ActiveModel and ActiveRecord
|
128
|
+
email: rspec@googlegroups.com
|
129
|
+
executables: []
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".yardopts"
|
134
|
+
- License.txt
|
135
|
+
- README.md
|
136
|
+
- features/mocks/mock_model.feature
|
137
|
+
- features/mocks/stub_model.feature
|
138
|
+
- features/step_definitions/additional_cli_steps.rb
|
139
|
+
- features/step_definitions/model_steps.rb
|
140
|
+
- features/support/env.rb
|
141
|
+
- features/support/rubinius.rb
|
142
|
+
- lib/rspec-activemodel-mocks.rb
|
143
|
+
- lib/rspec/active_model/mocks.rb
|
144
|
+
- lib/rspec/active_model/mocks/mocks.rb
|
145
|
+
- lib/rspec/active_model/mocks/version.rb
|
146
|
+
- spec/rspec/active_model/mocks/mock_model_spec.rb
|
147
|
+
- spec/rspec/active_model/mocks/stub_model_spec.rb
|
148
|
+
- spec/spec_helper.rb
|
149
|
+
- spec/support/ar_classes.rb
|
150
|
+
- spec/support/helpers.rb
|
151
|
+
- spec/support/matchers.rb
|
152
|
+
- spec/support/minitest_support.rb
|
153
|
+
- spec/support/null_object.rb
|
154
|
+
homepage: http://github.com/thomas-holmes/rspec-activemodel-mocks
|
155
|
+
licenses:
|
156
|
+
- MIT
|
157
|
+
metadata: {}
|
158
|
+
post_install_message:
|
159
|
+
rdoc_options:
|
160
|
+
- "--charset=UTF-8"
|
161
|
+
require_paths:
|
162
|
+
- lib
|
163
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 1.3.1
|
173
|
+
requirements: []
|
174
|
+
rubyforge_project: rspec
|
175
|
+
rubygems_version: 2.2.0
|
176
|
+
signing_key:
|
177
|
+
specification_version: 4
|
178
|
+
summary: rspec-activemodel-mocks-1.0.0.beta1
|
179
|
+
test_files:
|
180
|
+
- features/mocks/mock_model.feature
|
181
|
+
- features/mocks/stub_model.feature
|
182
|
+
- features/step_definitions/additional_cli_steps.rb
|
183
|
+
- features/step_definitions/model_steps.rb
|
184
|
+
- features/support/env.rb
|
185
|
+
- features/support/rubinius.rb
|
186
|
+
- spec/rspec/active_model/mocks/mock_model_spec.rb
|
187
|
+
- spec/rspec/active_model/mocks/stub_model_spec.rb
|
188
|
+
- spec/spec_helper.rb
|
189
|
+
- spec/support/ar_classes.rb
|
190
|
+
- spec/support/helpers.rb
|
191
|
+
- spec/support/matchers.rb
|
192
|
+
- spec/support/minitest_support.rb
|
193
|
+
- spec/support/null_object.rb
|
194
|
+
has_rdoc:
|