ceo 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ one:
4
+ name: MyString
5
+
6
+ two:
7
+ name: MyString
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class BananaTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
data/test/routes_test.rb CHANGED
@@ -23,5 +23,9 @@ describe 'routes' do
23
23
  it 'edit' do
24
24
  admin_exists_for? "/apples/#{@apple.id}/edit"
25
25
  end
26
+
27
+ it 'should allow passing a block to resources' do
28
+ admin_exists_for? "/apples/#{@apple.id}/other_route"
29
+ end
26
30
  end
27
31
  end
data/test/test_helper.rb CHANGED
@@ -18,17 +18,17 @@ if ActiveSupport::TestCase.respond_to?(:fixture_path=)
18
18
  ActiveSupport::TestCase.fixtures :all
19
19
  end
20
20
 
21
- require 'minitest/autorun'
21
+ require 'maxitest/autorun'
22
22
  require 'minitest/spec'
23
- require 'minitest/reporters'
24
23
  require 'capybara/rails'
25
-
26
- Minitest::Reporters.use!(Minitest::Reporters::DefaultReporter.new(color: true))
24
+ require 'capybara/poltergeist'
27
25
 
28
26
  module AcceptanceHelper
29
- include Minitest::Spec::DSL
27
+ extend Minitest::Spec::DSL
30
28
  include Capybara::DSL
31
29
 
30
+ Capybara.javascript_driver = :poltergeist
31
+
32
32
  def admin_page(named_route)
33
33
  visit("/admin#{named_route}")
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ceo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Herrick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-08 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.3
19
+ version: 4.2.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.3
26
+ version: 4.2.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: capybara
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: minitest
42
+ name: guard
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: minitest-reporters
56
+ name: guard-minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: pg
70
+ name: maxitest
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: guard
84
+ name: minitest
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,7 +95,21 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: guard-minitest
98
+ name: pg
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: poltergeist
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
115
  - - ">="
@@ -159,12 +173,15 @@ files:
159
173
  - test/dummy/app/assets/javascripts/application.js
160
174
  - test/dummy/app/assets/stylesheets/application.css
161
175
  - test/dummy/app/controllers/admin/apples_controller.rb
176
+ - test/dummy/app/controllers/admin/bananas_controller.rb
162
177
  - test/dummy/app/controllers/application_controller.rb
163
178
  - test/dummy/app/helpers/application_helper.rb
164
179
  - test/dummy/app/models/apple.rb
180
+ - test/dummy/app/models/banana.rb
165
181
  - test/dummy/app/models/fruit.rb
166
182
  - test/dummy/app/services/admin_middleware.rb
167
183
  - test/dummy/app/views/admin/apples/_form.html.erb
184
+ - test/dummy/app/views/admin/bananas/_form.html.erb
168
185
  - test/dummy/app/views/layouts/application.html.erb
169
186
  - test/dummy/bin/bundle
170
187
  - test/dummy/bin/rails
@@ -191,6 +208,7 @@ files:
191
208
  - test/dummy/config/secrets.yml
192
209
  - test/dummy/db/migrate/20151102015027_create_apple.rb
193
210
  - test/dummy/db/migrate/20151102015821_create_fruit.rb
211
+ - test/dummy/db/migrate/20151112204745_create_bananas.rb
194
212
  - test/dummy/db/schema.rb
195
213
  - test/dummy/log/development.log
196
214
  - test/dummy/log/test.log
@@ -198,6 +216,8 @@ files:
198
216
  - test/dummy/public/422.html
199
217
  - test/dummy/public/500.html
200
218
  - test/dummy/public/favicon.ico
219
+ - test/dummy/test/fixtures/bananas.yml
220
+ - test/dummy/test/models/banana_test.rb
201
221
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/06kswGuJvJV_rYCqtNdY_TVqyyiO-Nc9uzEuTWcBpOY.cache
202
222
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/4Vm2vRc1fj79xCggJkbHDJF2Kpm_o-pNLOleLmn6j_Q.cache
203
223
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
@@ -252,12 +272,15 @@ test_files:
252
272
  - test/dummy/app/assets/javascripts/application.js
253
273
  - test/dummy/app/assets/stylesheets/application.css
254
274
  - test/dummy/app/controllers/admin/apples_controller.rb
275
+ - test/dummy/app/controllers/admin/bananas_controller.rb
255
276
  - test/dummy/app/controllers/application_controller.rb
256
277
  - test/dummy/app/helpers/application_helper.rb
257
278
  - test/dummy/app/models/apple.rb
279
+ - test/dummy/app/models/banana.rb
258
280
  - test/dummy/app/models/fruit.rb
259
281
  - test/dummy/app/services/admin_middleware.rb
260
282
  - test/dummy/app/views/admin/apples/_form.html.erb
283
+ - test/dummy/app/views/admin/bananas/_form.html.erb
261
284
  - test/dummy/app/views/layouts/application.html.erb
262
285
  - test/dummy/bin/bundle
263
286
  - test/dummy/bin/rails
@@ -284,6 +307,7 @@ test_files:
284
307
  - test/dummy/config.ru
285
308
  - test/dummy/db/migrate/20151102015027_create_apple.rb
286
309
  - test/dummy/db/migrate/20151102015821_create_fruit.rb
310
+ - test/dummy/db/migrate/20151112204745_create_bananas.rb
287
311
  - test/dummy/db/schema.rb
288
312
  - test/dummy/log/development.log
289
313
  - test/dummy/log/test.log
@@ -293,6 +317,8 @@ test_files:
293
317
  - test/dummy/public/favicon.ico
294
318
  - test/dummy/Rakefile
295
319
  - test/dummy/README.rdoc
320
+ - test/dummy/test/fixtures/bananas.yml
321
+ - test/dummy/test/models/banana_test.rb
296
322
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/06kswGuJvJV_rYCqtNdY_TVqyyiO-Nc9uzEuTWcBpOY.cache
297
323
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/4Vm2vRc1fj79xCggJkbHDJF2Kpm_o-pNLOleLmn6j_Q.cache
298
324
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache