refinerycms-testing 1.0.11 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +2 -1
- data/lib/generators/refinery/testing/templates/Guardfile +30 -0
- data/lib/generators/refinery/testing/templates/spec/spec_helper.rb +52 -0
- data/lib/generators/refinery/testing/testing_generator.rb +14 -0
- data/lib/refinery/tasks/testing.rake +51 -0
- data/lib/refinery/testing.rb +33 -0
- data/lib/refinery/testing/controller_macros.rb +8 -0
- data/lib/refinery/testing/controller_macros/authentication.rb +43 -0
- data/lib/refinery/testing/controller_macros/methods.rb +33 -0
- data/lib/refinery/testing/railtie.rb +31 -0
- data/lib/refinery/testing/request_macros.rb +7 -0
- data/lib/refinery/testing/request_macros/authentication.rb +63 -0
- data/lib/refinery/testing/url_helper.rb +9 -0
- data/lib/refinerycms-testing.rb +1 -50
- data/refinerycms-testing.gemspec +19 -51
- metadata +191 -169
- data/config/cucumber.yml +0 -11
- data/features/step_definitions/web_steps.rb +0 -227
- data/features/support/env.rb +0 -63
- data/features/support/factories.rb +0 -1
- data/features/support/negative_expectations_helper.rb +0 -57
- data/features/support/paths.rb +0 -92
- data/lib/gemspec.rb +0 -50
- data/lib/generators/refinerycms_testing_generator.rb +0 -28
- data/lib/generators/templates/features/support/paths.rb +0 -19
- data/lib/tasks/cucumber.rake +0 -53
- data/lib/tasks/rcov.rake +0 -47
- data/spec/rcov.opts +0 -2
- data/spec/spec_helper.rb +0 -83
- data/spec/support/refinery/controller_macros.rb +0 -27
data/refinerycms-testing.gemspec
CHANGED
@@ -1,67 +1,35 @@
|
|
1
1
|
# Encoding: UTF-8
|
2
|
-
|
2
|
+
$:.push File.expand_path('../../core/lib', __FILE__)
|
3
|
+
require 'refinery/version'
|
4
|
+
|
5
|
+
version = Refinery::Version.to_s
|
3
6
|
|
4
7
|
Gem::Specification.new do |s|
|
8
|
+
s.platform = Gem::Platform::RUBY
|
5
9
|
s.name = %q{refinerycms-testing}
|
6
|
-
s.version =
|
10
|
+
s.version = version
|
7
11
|
s.summary = %q{Testing plugin for Refinery CMS}
|
8
|
-
s.description = %q{This plugin adds the ability to run cucumber and rspec against the
|
9
|
-
s.date = %q{2012-05-18}
|
12
|
+
s.description = %q{This plugin adds the ability to run cucumber and rspec against the Refinery CMS gem while inside a Refinery CMS project}
|
10
13
|
s.email = %q{info@refinerycms.com}
|
11
14
|
s.homepage = %q{http://refinerycms.com}
|
12
15
|
s.rubyforge_project = %q{refinerycms}
|
13
16
|
s.authors = ['Philip Arndt']
|
14
17
|
s.license = %q{MIT}
|
15
18
|
s.require_paths = %w(lib)
|
16
|
-
s.executables = %w()
|
17
|
-
|
18
|
-
s.add_dependency 'refinerycms-core', '= 1.0.11'
|
19
19
|
|
20
|
-
|
21
|
-
s.
|
22
|
-
s.
|
23
|
-
s.add_dependency 'rspec-instafail'
|
20
|
+
s.files = `git ls-files`.split("\n")
|
21
|
+
s.test_files = `git ls-files -- spec/*`.split("\n")
|
22
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
24
23
|
|
25
|
-
|
26
|
-
s.add_dependency 'database_cleaner'
|
27
|
-
s.add_dependency 'cucumber-rails', '~> 1.0.0'
|
24
|
+
s.add_dependency 'database_cleaner', '~> 0.7.1'
|
28
25
|
s.add_dependency 'launchy'
|
29
|
-
s.add_dependency '
|
26
|
+
s.add_dependency 'factory_girl_rails', '~> 1.6.0'
|
30
27
|
s.add_dependency 'json_pure'
|
31
|
-
|
32
|
-
|
33
|
-
s.add_dependency '
|
34
|
-
|
35
|
-
s.
|
36
|
-
|
37
|
-
|
38
|
-
'config/cucumber.yml',
|
39
|
-
'features',
|
40
|
-
'features/step_definitions',
|
41
|
-
'features/step_definitions/web_steps.rb',
|
42
|
-
'features/support',
|
43
|
-
'features/support/env.rb',
|
44
|
-
'features/support/factories.rb',
|
45
|
-
'features/support/negative_expectations_helper.rb',
|
46
|
-
'features/support/paths.rb',
|
47
|
-
'lib',
|
48
|
-
'lib/gemspec.rb',
|
49
|
-
'lib/generators',
|
50
|
-
'lib/generators/refinerycms_testing_generator.rb',
|
51
|
-
'lib/generators/templates',
|
52
|
-
'lib/generators/templates/features',
|
53
|
-
'lib/generators/templates/features/support',
|
54
|
-
'lib/generators/templates/features/support/paths.rb',
|
55
|
-
'lib/refinerycms-testing.rb',
|
56
|
-
'lib/tasks',
|
57
|
-
'lib/tasks/cucumber.rake',
|
58
|
-
'lib/tasks/rcov.rake',
|
59
|
-
'refinerycms-testing.gemspec',
|
60
|
-
'spec',
|
61
|
-
'spec/rcov.opts',
|
62
|
-
'spec/spec_helper.rb',
|
63
|
-
'spec/support',
|
64
|
-
'spec/support/refinery',
|
65
|
-
'spec/support/refinery/controller_macros.rb'
|
66
|
-
]
|
28
|
+
s.add_dependency 'rack-test', '~> 0.6.0'
|
29
|
+
s.add_dependency 'rspec-rails', '~> 2.8.1'
|
30
|
+
s.add_dependency 'fuubar'
|
31
|
+
s.add_dependency 'rspec-instafail'
|
32
|
+
s.add_dependency 'capybara', '~> 1.1.0'
|
33
|
+
s.add_dependency 'guard-rspec', '~> 0.6.0'
|
34
|
+
s.add_dependency 'refinerycms-core', version
|
67
35
|
end
|
metadata
CHANGED
@@ -1,224 +1,246 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-testing
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 2.0.0
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Philip Arndt
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - '='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 1.0.11
|
22
|
-
type: :runtime
|
17
|
+
|
18
|
+
date: 2012-03-01 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
23
21
|
prerelease: false
|
24
|
-
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - '='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 1.0.11
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: rspec-rails
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
33
23
|
none: false
|
34
|
-
requirements:
|
24
|
+
requirements:
|
35
25
|
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 1
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 7
|
31
|
+
- 1
|
32
|
+
version: 0.7.1
|
33
|
+
version_requirements: *id001
|
34
|
+
name: database_cleaner
|
38
35
|
type: :runtime
|
36
|
+
- !ruby/object:Gem::Dependency
|
39
37
|
prerelease: false
|
40
|
-
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
- - ! '>='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '0'
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
version_requirements: *id002
|
48
|
+
name: launchy
|
54
49
|
type: :runtime
|
50
|
+
- !ruby/object:Gem::Dependency
|
55
51
|
prerelease: false
|
56
|
-
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: rspec-instafail
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
65
53
|
none: false
|
66
|
-
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
54
|
+
requirements:
|
55
|
+
- - ~>
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 15
|
58
|
+
segments:
|
59
|
+
- 1
|
60
|
+
- 6
|
61
|
+
- 0
|
62
|
+
version: 1.6.0
|
63
|
+
version_requirements: *id003
|
64
|
+
name: factory_girl_rails
|
70
65
|
type: :runtime
|
66
|
+
- !ruby/object:Gem::Dependency
|
71
67
|
prerelease: false
|
72
|
-
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
- - ! '>='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: '0'
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
version: "0"
|
77
|
+
version_requirements: *id004
|
78
|
+
name: json_pure
|
86
79
|
type: :runtime
|
80
|
+
- !ruby/object:Gem::Dependency
|
87
81
|
prerelease: false
|
88
|
-
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ! '>='
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: cucumber-rails
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
82
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
97
83
|
none: false
|
98
|
-
requirements:
|
84
|
+
requirements:
|
99
85
|
- - ~>
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
hash: 7
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
- 6
|
91
|
+
- 0
|
92
|
+
version: 0.6.0
|
93
|
+
version_requirements: *id005
|
94
|
+
name: rack-test
|
102
95
|
type: :runtime
|
96
|
+
- !ruby/object:Gem::Dependency
|
103
97
|
prerelease: false
|
104
|
-
|
98
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
105
99
|
none: false
|
106
|
-
requirements:
|
100
|
+
requirements:
|
107
101
|
- - ~>
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
version: '0'
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
hash: 45
|
104
|
+
segments:
|
105
|
+
- 2
|
106
|
+
- 8
|
107
|
+
- 1
|
108
|
+
version: 2.8.1
|
109
|
+
version_requirements: *id006
|
110
|
+
name: rspec-rails
|
118
111
|
type: :runtime
|
112
|
+
- !ruby/object:Gem::Dependency
|
119
113
|
prerelease: false
|
120
|
-
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- -
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
- - ! '>='
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: 0.5.6
|
114
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
hash: 3
|
120
|
+
segments:
|
121
|
+
- 0
|
122
|
+
version: "0"
|
123
|
+
version_requirements: *id007
|
124
|
+
name: fuubar
|
134
125
|
type: :runtime
|
126
|
+
- !ruby/object:Gem::Dependency
|
135
127
|
prerelease: false
|
136
|
-
|
137
|
-
none: false
|
138
|
-
requirements:
|
139
|
-
- -
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
- - ! '>='
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: '0'
|
128
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
hash: 3
|
134
|
+
segments:
|
135
|
+
- 0
|
136
|
+
version: "0"
|
137
|
+
version_requirements: *id008
|
138
|
+
name: rspec-instafail
|
150
139
|
type: :runtime
|
140
|
+
- !ruby/object:Gem::Dependency
|
151
141
|
prerelease: false
|
152
|
-
|
153
|
-
none: false
|
154
|
-
requirements:
|
155
|
-
- - ! '>='
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: '0'
|
158
|
-
- !ruby/object:Gem::Dependency
|
159
|
-
name: factory_girl
|
160
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
161
143
|
none: false
|
162
|
-
requirements:
|
163
|
-
- -
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
|
144
|
+
requirements:
|
145
|
+
- - ~>
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
hash: 19
|
148
|
+
segments:
|
149
|
+
- 1
|
150
|
+
- 1
|
151
|
+
- 0
|
152
|
+
version: 1.1.0
|
153
|
+
version_requirements: *id009
|
154
|
+
name: capybara
|
166
155
|
type: :runtime
|
156
|
+
- !ruby/object:Gem::Dependency
|
167
157
|
prerelease: false
|
168
|
-
|
158
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
169
159
|
none: false
|
170
|
-
requirements:
|
171
|
-
- -
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
|
174
|
-
|
175
|
-
|
160
|
+
requirements:
|
161
|
+
- - ~>
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
hash: 7
|
164
|
+
segments:
|
165
|
+
- 0
|
166
|
+
- 6
|
167
|
+
- 0
|
168
|
+
version: 0.6.0
|
169
|
+
version_requirements: *id010
|
170
|
+
name: guard-rspec
|
171
|
+
type: :runtime
|
172
|
+
- !ruby/object:Gem::Dependency
|
173
|
+
prerelease: false
|
174
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
175
|
+
none: false
|
176
|
+
requirements:
|
177
|
+
- - "="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
hash: 15
|
180
|
+
segments:
|
181
|
+
- 2
|
182
|
+
- 0
|
183
|
+
- 0
|
184
|
+
version: 2.0.0
|
185
|
+
version_requirements: *id011
|
186
|
+
name: refinerycms-core
|
187
|
+
type: :runtime
|
188
|
+
description: This plugin adds the ability to run cucumber and rspec against the Refinery CMS gem while inside a Refinery CMS project
|
176
189
|
email: info@refinerycms.com
|
177
190
|
executables: []
|
191
|
+
|
178
192
|
extensions: []
|
193
|
+
|
179
194
|
extra_rdoc_files: []
|
180
|
-
|
195
|
+
|
196
|
+
files:
|
181
197
|
- .rspec
|
182
|
-
-
|
183
|
-
-
|
184
|
-
-
|
185
|
-
-
|
186
|
-
-
|
187
|
-
-
|
188
|
-
- lib/
|
189
|
-
- lib/
|
190
|
-
- lib/
|
198
|
+
- lib/generators/refinery/testing/templates/Guardfile
|
199
|
+
- lib/generators/refinery/testing/templates/spec/spec_helper.rb
|
200
|
+
- lib/generators/refinery/testing/testing_generator.rb
|
201
|
+
- lib/refinery/tasks/testing.rake
|
202
|
+
- lib/refinery/testing.rb
|
203
|
+
- lib/refinery/testing/controller_macros.rb
|
204
|
+
- lib/refinery/testing/controller_macros/authentication.rb
|
205
|
+
- lib/refinery/testing/controller_macros/methods.rb
|
206
|
+
- lib/refinery/testing/railtie.rb
|
207
|
+
- lib/refinery/testing/request_macros.rb
|
208
|
+
- lib/refinery/testing/request_macros/authentication.rb
|
209
|
+
- lib/refinery/testing/url_helper.rb
|
191
210
|
- lib/refinerycms-testing.rb
|
192
|
-
- lib/tasks/cucumber.rake
|
193
|
-
- lib/tasks/rcov.rake
|
194
211
|
- refinerycms-testing.gemspec
|
195
|
-
- spec/rcov.opts
|
196
|
-
- spec/spec_helper.rb
|
197
|
-
- spec/support/refinery/controller_macros.rb
|
198
212
|
homepage: http://refinerycms.com
|
199
|
-
licenses:
|
213
|
+
licenses:
|
200
214
|
- MIT
|
201
215
|
post_install_message:
|
202
216
|
rdoc_options: []
|
203
|
-
|
217
|
+
|
218
|
+
require_paths:
|
204
219
|
- lib
|
205
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
220
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
206
221
|
none: false
|
207
|
-
requirements:
|
208
|
-
- -
|
209
|
-
- !ruby/object:Gem::Version
|
210
|
-
|
211
|
-
|
222
|
+
requirements:
|
223
|
+
- - ">="
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
hash: 3
|
226
|
+
segments:
|
227
|
+
- 0
|
228
|
+
version: "0"
|
229
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
230
|
none: false
|
213
|
-
requirements:
|
214
|
-
- -
|
215
|
-
- !ruby/object:Gem::Version
|
216
|
-
|
231
|
+
requirements:
|
232
|
+
- - ">="
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
hash: 3
|
235
|
+
segments:
|
236
|
+
- 0
|
237
|
+
version: "0"
|
217
238
|
requirements: []
|
239
|
+
|
218
240
|
rubyforge_project: refinerycms
|
219
|
-
rubygems_version: 1.8.
|
241
|
+
rubygems_version: 1.8.17
|
220
242
|
signing_key:
|
221
243
|
specification_version: 3
|
222
244
|
summary: Testing plugin for Refinery CMS
|
223
245
|
test_files: []
|
224
|
-
|
246
|
+
|