cucumber_factory 1.11.9 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby-version +1 -1
- data/.travis.yml +11 -5
- data/Gemfile +16 -0
- data/Gemfile.lock +84 -0
- data/README.md +2 -2
- data/gemfiles/Gemfile.cucumber-1.3.lock +3 -3
- data/gemfiles/Gemfile.cucumber-2.4.lock +32 -32
- data/gemfiles/Gemfile.cucumber-3.0 +1 -1
- data/gemfiles/Gemfile.cucumber-3.0.lock +44 -39
- data/gemfiles/Gemfile.cucumber-3.1 +16 -0
- data/gemfiles/Gemfile.cucumber-3.1.lock +89 -0
- data/lib/cucumber/factory.rb +14 -2
- data/lib/cucumber_factory.rb +7 -1
- data/lib/cucumber_factory/version.rb +1 -1
- data/spec/cucumber_factory/steps_spec.rb +22 -16
- data/spec/rails-2.3/app_root/log/test.log +1473 -0
- data/spec/rails-3.0/app_root/log/test.log +1903 -0
- data/spec/rails-3.2/app_root/log/test.log +4117 -0
- data/spec/rails-4.0/app_root/log/test.log +3870 -0
- data/spec/support/cucumber_helper.rb +18 -15
- metadata +97 -69
- checksums.yaml +0 -7
- data/Gemfile +0 -1
- data/Gemfile.lock +0 -1
@@ -1,20 +1,23 @@
|
|
1
1
|
def prepare_cucumber_example
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
2
|
+
if Cucumber::VERSION >= '3'
|
3
|
+
@runtime = Cucumber::Runtime.new
|
4
|
+
scenario = double('scenario', :language => 'en', :accept_hook? => true)
|
5
|
+
@runtime.send(:begin_scenario, scenario)
|
6
|
+
@main = Object.new
|
7
|
+
@main.extend(Cucumber::Glue::Dsl)
|
8
|
+
else
|
9
|
+
@runtime = Cucumber::Runtime.new
|
10
|
+
language = support_code.ruby if support_code.respond_to?(:ruby)
|
11
|
+
language ||= support_code.load_programming_language('rb')
|
12
|
+
language
|
13
|
+
scenario = double('scenario', :language => 'en', :accept_hook? => true)
|
14
|
+
language.send(:begin_scenario, scenario)
|
15
|
+
@world = language.current_world
|
16
|
+
@main = Object.new
|
17
|
+
@main.extend(Cucumber::RbSupport::RbDsl)
|
18
|
+
end
|
13
19
|
|
14
|
-
|
15
|
-
language = support_code.ruby if support_code.respond_to?(:ruby)
|
16
|
-
language ||= support_code.load_programming_language('rb')
|
17
|
-
language
|
20
|
+
Cucumber::Factory.add_steps(@main)
|
18
21
|
end
|
19
22
|
|
20
23
|
def invoke_cucumber_step(step)
|
metadata
CHANGED
@@ -1,82 +1,93 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber_factory
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 39
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 12
|
9
|
+
- 0
|
10
|
+
version: 1.12.0
|
5
11
|
platform: ruby
|
6
|
-
authors:
|
12
|
+
authors:
|
7
13
|
- Henning Koch
|
8
14
|
autorequire:
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
17
|
+
|
18
|
+
date: 2018-02-28 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
14
21
|
name: cucumber
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
22
|
prerelease: false
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: activesupport
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
31
26
|
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
34
32
|
type: :runtime
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: activesupport
|
35
36
|
prerelease: false
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: activerecord
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
45
40
|
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
48
46
|
type: :runtime
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: activerecord
|
49
50
|
prerelease: false
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: cucumber_priority
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
59
54
|
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
version: "0"
|
62
60
|
type: :runtime
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: cucumber_priority
|
63
64
|
prerelease: false
|
64
|
-
|
65
|
-
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
66
68
|
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
hash: 23
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
- 2
|
74
|
+
- 0
|
68
75
|
version: 0.2.0
|
69
|
-
|
70
|
-
|
76
|
+
type: :runtime
|
77
|
+
version_requirements: *id004
|
78
|
+
description: Cucumber Factory allows you to create ActiveRecord models from your Cucumber features without writing step definitions for each model.
|
71
79
|
email: github@makandra.de
|
72
80
|
executables: []
|
81
|
+
|
73
82
|
extensions: []
|
83
|
+
|
74
84
|
extra_rdoc_files: []
|
75
|
-
|
76
|
-
|
77
|
-
-
|
78
|
-
-
|
79
|
-
-
|
85
|
+
|
86
|
+
files:
|
87
|
+
- .gitignore
|
88
|
+
- .rspec
|
89
|
+
- .ruby-version
|
90
|
+
- .travis.yml
|
80
91
|
- Gemfile
|
81
92
|
- Gemfile.lock
|
82
93
|
- LICENSE
|
@@ -89,6 +100,8 @@ files:
|
|
89
100
|
- gemfiles/Gemfile.cucumber-2.4.lock
|
90
101
|
- gemfiles/Gemfile.cucumber-3.0
|
91
102
|
- gemfiles/Gemfile.cucumber-3.0.lock
|
103
|
+
- gemfiles/Gemfile.cucumber-3.1
|
104
|
+
- gemfiles/Gemfile.cucumber-3.1.lock
|
92
105
|
- lib/cucumber/factory.rb
|
93
106
|
- lib/cucumber/factory/build_strategy.rb
|
94
107
|
- lib/cucumber_factory.rb
|
@@ -96,6 +109,10 @@ files:
|
|
96
109
|
- lib/cucumber_factory/version.rb
|
97
110
|
- spec/cucumber_factory/factory/build_strategy_spec.rb
|
98
111
|
- spec/cucumber_factory/steps_spec.rb
|
112
|
+
- spec/rails-2.3/app_root/log/test.log
|
113
|
+
- spec/rails-3.0/app_root/log/test.log
|
114
|
+
- spec/rails-3.2/app_root/log/test.log
|
115
|
+
- spec/rails-4.0/app_root/log/test.log
|
99
116
|
- spec/spec_helper.rb
|
100
117
|
- spec/support/cucumber_helper.rb
|
101
118
|
- spec/support/database.rb
|
@@ -112,27 +129,38 @@ files:
|
|
112
129
|
- spec/support/models/user.rb
|
113
130
|
- spec/support/models/uuid_user.rb
|
114
131
|
homepage: http://github.com/makandra/cucumber_factory
|
115
|
-
licenses:
|
132
|
+
licenses:
|
116
133
|
- MIT
|
117
|
-
metadata: {}
|
118
134
|
post_install_message:
|
119
135
|
rdoc_options: []
|
120
|
-
|
136
|
+
|
137
|
+
require_paths:
|
121
138
|
- lib
|
122
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
-
|
139
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
140
|
+
none: false
|
141
|
+
requirements:
|
124
142
|
- - ">="
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
|
127
|
-
|
128
|
-
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
hash: 3
|
145
|
+
segments:
|
146
|
+
- 0
|
147
|
+
version: "0"
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
|
+
none: false
|
150
|
+
requirements:
|
129
151
|
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
hash: 3
|
154
|
+
segments:
|
155
|
+
- 0
|
156
|
+
version: "0"
|
132
157
|
requirements: []
|
158
|
+
|
133
159
|
rubyforge_project:
|
134
|
-
rubygems_version:
|
160
|
+
rubygems_version: 1.8.30
|
135
161
|
signing_key:
|
136
|
-
specification_version:
|
162
|
+
specification_version: 3
|
137
163
|
summary: Create records from Cucumber features without writing step definitions.
|
138
164
|
test_files: []
|
165
|
+
|
166
|
+
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: cf308118b2098c3650288d2da08549d6f1f51c07
|
4
|
-
data.tar.gz: 8325e52892d5331e2c5d9a0670ad8883e8519783
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: d4111f40061523a16fb4845487beadc7ea8580e9bc47b7e701fadd8ced980cc4444b02fbdcc3b55c4f825b1dc7e7494988ef48f8b121c108ef0e31b31820cae5
|
7
|
-
data.tar.gz: '0186bd34d5f8325d5bd355d6eedc927f66f1c685b9166990af20a282f12394c340aed9d378c31fbdddcca99f1ac462762a5a6bc9b1c3bdb619a57e94733ef7b6'
|
data/Gemfile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
./gemfiles/Gemfile.cucumber-2.4
|
data/Gemfile.lock
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
./gemfiles/Gemfile.cucumber-2.4.lock
|