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 +4 -4
- data/lib/daddy/cucumber.rb +1 -8
- data/lib/daddy/cucumber/helpers.rb +7 -0
- data/lib/daddy/cucumber/{assert.rb → helpers/assert.rb} +0 -0
- data/lib/daddy/cucumber/{capture.rb → helpers/capture.rb} +8 -1
- data/lib/daddy/cucumber/{diff.rb → helpers/diff.rb} +0 -0
- data/lib/daddy/cucumber/{html.rb → helpers/html.rb} +0 -0
- data/lib/daddy/cucumber/{pause.rb → helpers/pause.rb} +0 -0
- data/lib/daddy/cucumber/{puts.rb → helpers/puts.rb} +0 -0
- data/lib/daddy/cucumber/{table.rb → helpers/table.rb} +0 -2
- data/lib/daddy/version.rb +1 -1
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ca6e685e72bd8948b69284cc45e9333b8d9428e
|
4
|
+
data.tar.gz: 920fe364926678099e13dcee90f0d2aad683bb5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f846dafa985ba2c5dbb9aa2f716b3e3613c12cb32393a48863ed72fe339bae25a2d800ac19aa5fbb27f4c513305c9ff4dc3e62975a927b4d9c61644163f40f97
|
7
|
+
data.tar.gz: 7af5f7dbae79a6834269d10556eb330edb6635986845d0c1a2a105428a80878bc6edc4653947e55ac89d8e9a5d028944281bb3a5ec308e948aae10390bca8168
|
data/lib/daddy/cucumber.rb
CHANGED
@@ -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
|
File without changes
|
@@ -1,7 +1,14 @@
|
|
1
1
|
module Daddy
|
2
2
|
module Cucumber
|
3
3
|
module Capture
|
4
|
-
|
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
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/daddy/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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/
|
280
|
-
- lib/daddy/cucumber/
|
281
|
-
- lib/daddy/cucumber/
|
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
|