daddy 0.3.23 → 0.3.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84ad6ba2dc48b43b7d845097e132867940c9158a
4
- data.tar.gz: 658986cc757c49a843054329754f5b652c7e007b
3
+ metadata.gz: 9ca6e685e72bd8948b69284cc45e9333b8d9428e
4
+ data.tar.gz: 920fe364926678099e13dcee90f0d2aad683bb5a
5
5
  SHA512:
6
- metadata.gz: daa8a7be392f1a02fa965101d178214e74e8c7a3a5aa72fa629236d4990df712465817004ee9efdc1fbb58c978f268e7fdf41aa7a1a399781567cf65e8fc2a70
7
- data.tar.gz: a2835367b9ba1f134c34d44dec9b95e48d936c8536055bf28f195cae2fbda5136f336841f985f1ea1b7b2e8852cb1b61a63eafc1a9b2fdfb48633305fb714db2
6
+ metadata.gz: f846dafa985ba2c5dbb9aa2f716b3e3613c12cb32393a48863ed72fe339bae25a2d800ac19aa5fbb27f4c513305c9ff4dc3e62975a927b4d9c61644163f40f97
7
+ data.tar.gz: 7af5f7dbae79a6834269d10556eb330edb6635986845d0c1a2a105428a80878bc6edc4653947e55ac89d8e9a5d028944281bb3a5ec308e948aae10390bca8168
@@ -18,14 +18,6 @@ require 'capybara/poltergeist' if ENV['DRIVER'] == 'poltergeist'
18
18
  Capybara.default_driver = (ENV['DRIVER'] || :selenium).to_sym
19
19
  Capybara.default_selector = :css
20
20
 
21
- Dir::glob(File.dirname(__FILE__) + '/cucumber/*.rb').each do |file|
22
- require file
23
- end
24
-
25
- Dir::glob(File.dirname(__FILE__) + '/cucumber/step_definitions/*.rb').each do |file|
26
- load file
27
- end
28
-
29
21
  def override_method(obj, method_name, &block)
30
22
  klass = class <<obj; self; end
31
23
  klass.send(:undef_method, method_name)
@@ -54,6 +46,7 @@ AfterConfiguration do |configuration|
54
46
  }
55
47
  end
56
48
 
49
+ require_relative 'cucumber/helpers'
57
50
  require_relative 'cucumber/hooks/database' if defined?(Rails)
58
51
 
59
52
  Before do
@@ -0,0 +1,7 @@
1
+ Dir::glob(File.dirname(__FILE__) + '/helpers/*.rb').each do |file|
2
+ require file
3
+ end
4
+
5
+ Dir::glob(File.dirname(__FILE__) + '/step_definitions/*.rb').each do |file|
6
+ load file
7
+ end
@@ -1,7 +1,14 @@
1
1
  module Daddy
2
2
  module Cucumber
3
3
  module Capture
4
- REPORT_DIR = File.join('features', 'reports')
4
+ feature_dir = 'feature'
5
+ ARGV.each_with_index do |arg, i|
6
+ if arg == '-r'
7
+ feature_dir = ARGV[i + 1]
8
+ break
9
+ end
10
+ end
11
+ REPORT_DIR = File.join(feature_dir, 'reports')
5
12
  IMAGE_DIR = 'images'
6
13
  FileUtils.mkdir_p("#{REPORT_DIR}/#{IMAGE_DIR}")
7
14
 
@@ -1,5 +1,3 @@
1
- # coding: UTF-8
2
-
3
1
  module Daddy
4
2
  module Cucumber
5
3
  module Table
@@ -1,3 +1,3 @@
1
1
  module Daddy
2
- VERSION = '0.3.23'.freeze
2
+ VERSION = '0.3.24'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.23
4
+ version: 0.3.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-08 00:00:00.000000000 Z
11
+ date: 2015-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.1
33
+ version: '0.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.1
40
+ version: '0.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cucumber-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -276,18 +276,19 @@ files:
276
276
  - lib/active_support/cache/null_store.rb
277
277
  - lib/daddy.rb
278
278
  - lib/daddy/cucumber.rb
279
- - lib/daddy/cucumber/assert.rb
280
- - lib/daddy/cucumber/capture.rb
281
- - lib/daddy/cucumber/diff.rb
279
+ - lib/daddy/cucumber/helpers.rb
280
+ - lib/daddy/cucumber/helpers/assert.rb
281
+ - lib/daddy/cucumber/helpers/capture.rb
282
+ - lib/daddy/cucumber/helpers/diff.rb
283
+ - lib/daddy/cucumber/helpers/html.rb
284
+ - lib/daddy/cucumber/helpers/pause.rb
285
+ - lib/daddy/cucumber/helpers/puts.rb
286
+ - lib/daddy/cucumber/helpers/table.rb
282
287
  - lib/daddy/cucumber/hooks/database.rb
283
- - lib/daddy/cucumber/html.rb
284
- - lib/daddy/cucumber/pause.rb
285
- - lib/daddy/cucumber/puts.rb
286
288
  - lib/daddy/cucumber/step_definitions/click.rb
287
289
  - lib/daddy/cucumber/step_definitions/common.rb
288
290
  - lib/daddy/cucumber/step_definitions/fill_in.rb
289
291
  - lib/daddy/cucumber/step_definitions/select.rb
290
- - lib/daddy/cucumber/table.rb
291
292
  - lib/daddy/differ/html_patch.rb
292
293
  - lib/daddy/formatter/cucumber.css
293
294
  - lib/daddy/formatter/daddy.css