cucumber_factory 1.11.3 → 1.11.4
Sign up to get free protection for your applications and to get access to all the features.
- data/cucumber_factory.gemspec +1 -5
- data/lib/cucumber/factory.rb +6 -5
- data/lib/cucumber_factory.rb +3 -4
- data/lib/cucumber_factory/version.rb +1 -1
- data/spec/rails-2.3/Gemfile.lock +14 -7
- data/spec/rails-3.0/Gemfile +1 -1
- data/spec/rails-3.0/Gemfile.lock +33 -23
- data/spec/rails-3.2/Gemfile.lock +67 -55
- data/spec/rails-4.0/Gemfile +1 -1
- data/spec/rails-4.0/Gemfile.lock +49 -54
- data/spec/shared/cucumber_factory/steps_spec.rb +17 -17
- metadata +6 -55
- data/lib/cucumber/runtime_ext.rb +0 -37
data/cucumber_factory.gemspec
CHANGED
@@ -17,13 +17,9 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
|
20
|
-
s.add_development_dependency('rails', '~>2.3')
|
21
|
-
s.add_development_dependency('rspec', '<2')
|
22
|
-
s.add_development_dependency('rspec-rails', '=1.3.4')
|
23
|
-
s.add_development_dependency('sqlite3')
|
24
|
-
|
25
20
|
s.add_dependency('cucumber')
|
26
21
|
s.add_dependency('activesupport')
|
22
|
+
s.add_dependency('cucumber_priority')
|
27
23
|
|
28
24
|
end
|
29
25
|
|
data/lib/cucumber/factory.rb
CHANGED
@@ -28,8 +28,6 @@ module Cucumber
|
|
28
28
|
|
29
29
|
class << self
|
30
30
|
|
31
|
-
attr_reader :step_definitions
|
32
|
-
|
33
31
|
def add_steps(main)
|
34
32
|
add_step(main, CREATION_STEP_DESCRIPTOR)
|
35
33
|
add_step(main, NAMED_CREATION_STEP_DESCRIPTOR)
|
@@ -39,9 +37,12 @@ module Cucumber
|
|
39
37
|
private
|
40
38
|
|
41
39
|
def add_step(main, descriptor)
|
42
|
-
|
43
|
-
|
44
|
-
|
40
|
+
main.instance_eval {
|
41
|
+
kind = descriptor[:kind]
|
42
|
+
object = send(kind, *[descriptor[:pattern]].compact, &descriptor[:block])
|
43
|
+
object.overridable if kind != :Before
|
44
|
+
object
|
45
|
+
}
|
45
46
|
end
|
46
47
|
|
47
48
|
def get_named_record(world, name)
|
data/lib/cucumber_factory.rb
CHANGED
data/spec/rails-2.3/Gemfile.lock
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
cucumber_factory (1.11.
|
4
|
+
cucumber_factory (1.11.3)
|
5
5
|
activesupport
|
6
6
|
cucumber
|
7
|
+
cucumber_priority
|
7
8
|
|
8
9
|
GEM
|
9
10
|
remote: http://rubygems.org/
|
@@ -19,19 +20,22 @@ GEM
|
|
19
20
|
activesupport (= 2.3.18)
|
20
21
|
activesupport (2.3.18)
|
21
22
|
builder (3.2.2)
|
22
|
-
cucumber (1.3.
|
23
|
+
cucumber (1.3.20)
|
23
24
|
builder (>= 2.1.2)
|
24
25
|
diff-lcs (>= 1.1.3)
|
25
26
|
gherkin (~> 2.12)
|
26
27
|
multi_json (>= 1.7.5, < 2.0)
|
27
|
-
multi_test (>= 0.1.
|
28
|
+
multi_test (>= 0.1.2)
|
29
|
+
cucumber_priority (0.1.0)
|
30
|
+
activesupport
|
31
|
+
cucumber
|
28
32
|
diff-lcs (1.2.5)
|
29
33
|
gherkin (2.12.2)
|
30
34
|
multi_json (~> 1.3)
|
31
35
|
hoe (2.8.0)
|
32
36
|
rake (>= 0.8.7)
|
33
|
-
multi_json (1.
|
34
|
-
multi_test (0.1.
|
37
|
+
multi_json (1.11.2)
|
38
|
+
multi_test (0.1.2)
|
35
39
|
rack (1.1.6)
|
36
40
|
rails (2.3.18)
|
37
41
|
actionmailer (= 2.3.18)
|
@@ -40,12 +44,12 @@ GEM
|
|
40
44
|
activeresource (= 2.3.18)
|
41
45
|
activesupport (= 2.3.18)
|
42
46
|
rake (>= 0.8.3)
|
43
|
-
rake (10.2
|
47
|
+
rake (10.4.2)
|
44
48
|
rspec (1.3.2)
|
45
49
|
rspec-rails (1.3.4)
|
46
50
|
rack (>= 1.0.0)
|
47
51
|
rspec (~> 1.3.1)
|
48
|
-
sqlite3 (1.3.
|
52
|
+
sqlite3 (1.3.11)
|
49
53
|
test-unit (1.2.3)
|
50
54
|
hoe (>= 1.5.1)
|
51
55
|
|
@@ -61,3 +65,6 @@ DEPENDENCIES
|
|
61
65
|
rspec-rails (< 2)
|
62
66
|
sqlite3
|
63
67
|
test-unit (= 1.2.3)
|
68
|
+
|
69
|
+
BUNDLED WITH
|
70
|
+
1.10.6
|
data/spec/rails-3.0/Gemfile
CHANGED
data/spec/rails-3.0/Gemfile.lock
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
cucumber_factory (1.11.
|
4
|
+
cucumber_factory (1.11.3)
|
5
5
|
activesupport
|
6
6
|
cucumber
|
7
|
+
cucumber_priority
|
7
8
|
|
8
9
|
GEM
|
9
10
|
remote: http://rubygems.org/
|
@@ -37,28 +38,31 @@ GEM
|
|
37
38
|
activesupport (3.0.20)
|
38
39
|
arel (2.0.10)
|
39
40
|
builder (2.1.2)
|
40
|
-
cucumber (1.3.
|
41
|
+
cucumber (1.3.20)
|
41
42
|
builder (>= 2.1.2)
|
42
43
|
diff-lcs (>= 1.1.3)
|
43
44
|
gherkin (~> 2.12)
|
44
45
|
multi_json (>= 1.7.5, < 2.0)
|
45
|
-
multi_test (>= 0.1.
|
46
|
+
multi_test (>= 0.1.2)
|
47
|
+
cucumber_priority (0.1.0)
|
48
|
+
activesupport
|
49
|
+
cucumber
|
46
50
|
diff-lcs (1.2.5)
|
47
51
|
erubis (2.6.6)
|
48
52
|
abstract (>= 1.0.0)
|
49
53
|
gherkin (2.12.2)
|
50
54
|
multi_json (~> 1.3)
|
51
|
-
i18n (0.5.
|
52
|
-
json (1.8.
|
55
|
+
i18n (0.5.4)
|
56
|
+
json (1.8.3)
|
53
57
|
mail (2.2.20)
|
54
58
|
activesupport (>= 2.3.6)
|
55
59
|
i18n (>= 0.4.0)
|
56
60
|
mime-types (~> 1.16)
|
57
61
|
treetop (~> 1.4.8)
|
58
62
|
mime-types (1.25.1)
|
59
|
-
multi_json (1.
|
60
|
-
multi_test (0.1.
|
61
|
-
polyglot (0.3.
|
63
|
+
multi_json (1.11.2)
|
64
|
+
multi_test (0.1.2)
|
65
|
+
polyglot (0.3.5)
|
62
66
|
rack (1.2.8)
|
63
67
|
rack-mount (0.6.14)
|
64
68
|
rack (>= 1.0.0)
|
@@ -78,31 +82,34 @@ GEM
|
|
78
82
|
rake (>= 0.8.7)
|
79
83
|
rdoc (~> 3.4)
|
80
84
|
thor (~> 0.14.4)
|
81
|
-
rake (10.2
|
85
|
+
rake (10.4.2)
|
82
86
|
rdoc (3.12.2)
|
83
87
|
json (~> 1.4)
|
84
|
-
rspec (2.
|
85
|
-
rspec-core (~> 2.
|
86
|
-
rspec-expectations (~> 2.
|
87
|
-
rspec-mocks (~> 2.
|
88
|
-
rspec-
|
89
|
-
|
88
|
+
rspec (2.99.0)
|
89
|
+
rspec-core (~> 2.99.0)
|
90
|
+
rspec-expectations (~> 2.99.0)
|
91
|
+
rspec-mocks (~> 2.99.0)
|
92
|
+
rspec-collection_matchers (1.1.2)
|
93
|
+
rspec-expectations (>= 2.99.0.beta1)
|
94
|
+
rspec-core (2.99.2)
|
95
|
+
rspec-expectations (2.99.2)
|
90
96
|
diff-lcs (>= 1.1.3, < 2.0)
|
91
|
-
rspec-mocks (2.
|
92
|
-
rspec-rails (2.
|
97
|
+
rspec-mocks (2.99.4)
|
98
|
+
rspec-rails (2.99.0)
|
93
99
|
actionpack (>= 3.0)
|
94
100
|
activemodel (>= 3.0)
|
95
101
|
activesupport (>= 3.0)
|
96
102
|
railties (>= 3.0)
|
97
|
-
rspec-
|
98
|
-
rspec-
|
99
|
-
rspec-
|
100
|
-
|
103
|
+
rspec-collection_matchers
|
104
|
+
rspec-core (~> 2.99.0)
|
105
|
+
rspec-expectations (~> 2.99.0)
|
106
|
+
rspec-mocks (~> 2.99.0)
|
107
|
+
sqlite3 (1.3.11)
|
101
108
|
thor (0.14.6)
|
102
109
|
treetop (1.4.15)
|
103
110
|
polyglot
|
104
111
|
polyglot (>= 0.3.1)
|
105
|
-
tzinfo (0.3.
|
112
|
+
tzinfo (0.3.45)
|
106
113
|
|
107
114
|
PLATFORMS
|
108
115
|
ruby
|
@@ -111,6 +118,9 @@ DEPENDENCIES
|
|
111
118
|
cucumber (< 2)
|
112
119
|
cucumber_factory!
|
113
120
|
rails (~> 3.0.3)
|
114
|
-
rspec
|
121
|
+
rspec (~> 2.0)
|
115
122
|
rspec-rails
|
116
123
|
sqlite3
|
124
|
+
|
125
|
+
BUNDLED WITH
|
126
|
+
1.10.6
|
data/spec/rails-3.2/Gemfile.lock
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
cucumber_factory (1.11.
|
4
|
+
cucumber_factory (1.11.3)
|
5
5
|
activesupport
|
6
6
|
cucumber
|
7
|
+
cucumber_priority
|
7
8
|
|
8
9
|
GEM
|
9
10
|
remote: http://rubygems.org/
|
10
11
|
specs:
|
11
|
-
actionmailer (3.2.
|
12
|
-
actionpack (= 3.2.
|
12
|
+
actionmailer (3.2.22)
|
13
|
+
actionpack (= 3.2.22)
|
13
14
|
mail (~> 2.5.4)
|
14
|
-
actionpack (3.2.
|
15
|
-
activemodel (= 3.2.
|
16
|
-
activesupport (= 3.2.
|
15
|
+
actionpack (3.2.22)
|
16
|
+
activemodel (= 3.2.22)
|
17
|
+
activesupport (= 3.2.22)
|
17
18
|
builder (~> 3.0.0)
|
18
19
|
erubis (~> 2.7.0)
|
19
20
|
journey (~> 1.0.4)
|
@@ -21,96 +22,104 @@ GEM
|
|
21
22
|
rack-cache (~> 1.2)
|
22
23
|
rack-test (~> 0.6.1)
|
23
24
|
sprockets (~> 2.2.1)
|
24
|
-
activemodel (3.2.
|
25
|
-
activesupport (= 3.2.
|
25
|
+
activemodel (3.2.22)
|
26
|
+
activesupport (= 3.2.22)
|
26
27
|
builder (~> 3.0.0)
|
27
|
-
activerecord (3.2.
|
28
|
-
activemodel (= 3.2.
|
29
|
-
activesupport (= 3.2.
|
28
|
+
activerecord (3.2.22)
|
29
|
+
activemodel (= 3.2.22)
|
30
|
+
activesupport (= 3.2.22)
|
30
31
|
arel (~> 3.0.2)
|
31
32
|
tzinfo (~> 0.3.29)
|
32
|
-
activeresource (3.2.
|
33
|
-
activemodel (= 3.2.
|
34
|
-
activesupport (= 3.2.
|
35
|
-
activesupport (3.2.
|
33
|
+
activeresource (3.2.22)
|
34
|
+
activemodel (= 3.2.22)
|
35
|
+
activesupport (= 3.2.22)
|
36
|
+
activesupport (3.2.22)
|
36
37
|
i18n (~> 0.6, >= 0.6.4)
|
37
38
|
multi_json (~> 1.0)
|
38
39
|
arel (3.0.3)
|
39
40
|
builder (3.0.4)
|
40
|
-
cucumber (1.3.
|
41
|
+
cucumber (1.3.20)
|
41
42
|
builder (>= 2.1.2)
|
42
43
|
diff-lcs (>= 1.1.3)
|
43
44
|
gherkin (~> 2.12)
|
44
45
|
multi_json (>= 1.7.5, < 2.0)
|
45
|
-
multi_test (>= 0.1.
|
46
|
+
multi_test (>= 0.1.2)
|
47
|
+
cucumber_priority (0.1.0)
|
48
|
+
activesupport
|
49
|
+
cucumber
|
46
50
|
diff-lcs (1.2.5)
|
47
51
|
erubis (2.7.0)
|
48
52
|
gherkin (2.12.2)
|
49
53
|
multi_json (~> 1.3)
|
50
54
|
hike (1.2.3)
|
51
|
-
i18n (0.
|
55
|
+
i18n (0.7.0)
|
52
56
|
journey (1.0.4)
|
53
|
-
json (1.8.
|
57
|
+
json (1.8.3)
|
54
58
|
mail (2.5.4)
|
55
59
|
mime-types (~> 1.16)
|
56
60
|
treetop (~> 1.4.8)
|
57
61
|
mime-types (1.25.1)
|
58
|
-
multi_json (1.
|
59
|
-
multi_test (0.1.
|
60
|
-
polyglot (0.3.
|
61
|
-
rack (1.4.
|
62
|
-
rack-cache (1.
|
62
|
+
multi_json (1.11.2)
|
63
|
+
multi_test (0.1.2)
|
64
|
+
polyglot (0.3.5)
|
65
|
+
rack (1.4.7)
|
66
|
+
rack-cache (1.5.1)
|
63
67
|
rack (>= 0.4)
|
64
68
|
rack-ssl (1.3.4)
|
65
69
|
rack
|
66
|
-
rack-test (0.6.
|
70
|
+
rack-test (0.6.3)
|
67
71
|
rack (>= 1.0)
|
68
|
-
rails (3.2.
|
69
|
-
actionmailer (= 3.2.
|
70
|
-
actionpack (= 3.2.
|
71
|
-
activerecord (= 3.2.
|
72
|
-
activeresource (= 3.2.
|
73
|
-
activesupport (= 3.2.
|
72
|
+
rails (3.2.22)
|
73
|
+
actionmailer (= 3.2.22)
|
74
|
+
actionpack (= 3.2.22)
|
75
|
+
activerecord (= 3.2.22)
|
76
|
+
activeresource (= 3.2.22)
|
77
|
+
activesupport (= 3.2.22)
|
74
78
|
bundler (~> 1.0)
|
75
|
-
railties (= 3.2.
|
76
|
-
railties (3.2.
|
77
|
-
actionpack (= 3.2.
|
78
|
-
activesupport (= 3.2.
|
79
|
+
railties (= 3.2.22)
|
80
|
+
railties (3.2.22)
|
81
|
+
actionpack (= 3.2.22)
|
82
|
+
activesupport (= 3.2.22)
|
79
83
|
rack-ssl (~> 1.3.2)
|
80
84
|
rake (>= 0.8.7)
|
81
85
|
rdoc (~> 3.4)
|
82
86
|
thor (>= 0.14.6, < 2.0)
|
83
|
-
rake (10.2
|
87
|
+
rake (10.4.2)
|
84
88
|
rdoc (3.12.2)
|
85
89
|
json (~> 1.4)
|
86
|
-
rspec (
|
87
|
-
rspec-core (~>
|
88
|
-
rspec-expectations (~>
|
89
|
-
rspec-mocks (~>
|
90
|
-
rspec-core (
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
90
|
+
rspec (3.4.0)
|
91
|
+
rspec-core (~> 3.4.0)
|
92
|
+
rspec-expectations (~> 3.4.0)
|
93
|
+
rspec-mocks (~> 3.4.0)
|
94
|
+
rspec-core (3.4.1)
|
95
|
+
rspec-support (~> 3.4.0)
|
96
|
+
rspec-expectations (3.4.0)
|
97
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
98
|
+
rspec-support (~> 3.4.0)
|
99
|
+
rspec-mocks (3.4.0)
|
100
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
101
|
+
rspec-support (~> 3.4.0)
|
102
|
+
rspec-rails (3.4.0)
|
103
|
+
actionpack (>= 3.0, < 4.3)
|
104
|
+
activesupport (>= 3.0, < 4.3)
|
105
|
+
railties (>= 3.0, < 4.3)
|
106
|
+
rspec-core (~> 3.4.0)
|
107
|
+
rspec-expectations (~> 3.4.0)
|
108
|
+
rspec-mocks (~> 3.4.0)
|
109
|
+
rspec-support (~> 3.4.0)
|
110
|
+
rspec-support (3.4.1)
|
111
|
+
sprockets (2.2.3)
|
103
112
|
hike (~> 1.2)
|
104
113
|
multi_json (~> 1.0)
|
105
114
|
rack (~> 1.0)
|
106
115
|
tilt (~> 1.1, != 1.3.0)
|
107
|
-
sqlite3 (1.3.
|
116
|
+
sqlite3 (1.3.11)
|
108
117
|
thor (0.19.1)
|
109
118
|
tilt (1.4.1)
|
110
119
|
treetop (1.4.15)
|
111
120
|
polyglot
|
112
121
|
polyglot (>= 0.3.1)
|
113
|
-
tzinfo (0.3.
|
122
|
+
tzinfo (0.3.45)
|
114
123
|
|
115
124
|
PLATFORMS
|
116
125
|
ruby
|
@@ -122,3 +131,6 @@ DEPENDENCIES
|
|
122
131
|
rspec
|
123
132
|
rspec-rails
|
124
133
|
sqlite3
|
134
|
+
|
135
|
+
BUNDLED WITH
|
136
|
+
1.10.6
|
data/spec/rails-4.0/Gemfile
CHANGED
data/spec/rails-4.0/Gemfile.lock
CHANGED
@@ -1,77 +1,77 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
cucumber_factory (1.11.
|
4
|
+
cucumber_factory (1.11.3)
|
5
5
|
activesupport
|
6
6
|
cucumber
|
7
|
+
cucumber_priority
|
7
8
|
|
8
9
|
GEM
|
9
10
|
remote: http://rubygems.org/
|
10
11
|
specs:
|
11
|
-
actionmailer (4.0.
|
12
|
-
actionpack (= 4.0.
|
13
|
-
mail (~> 2.5.4)
|
14
|
-
actionpack (4.0.
|
15
|
-
activesupport (= 4.0.
|
12
|
+
actionmailer (4.0.13)
|
13
|
+
actionpack (= 4.0.13)
|
14
|
+
mail (~> 2.5, >= 2.5.4)
|
15
|
+
actionpack (4.0.13)
|
16
|
+
activesupport (= 4.0.13)
|
16
17
|
builder (~> 3.1.0)
|
17
18
|
erubis (~> 2.7.0)
|
18
19
|
rack (~> 1.5.2)
|
19
20
|
rack-test (~> 0.6.2)
|
20
|
-
activemodel (4.0.
|
21
|
-
activesupport (= 4.0.
|
21
|
+
activemodel (4.0.13)
|
22
|
+
activesupport (= 4.0.13)
|
22
23
|
builder (~> 3.1.0)
|
23
|
-
activerecord (4.0.
|
24
|
-
activemodel (= 4.0.
|
24
|
+
activerecord (4.0.13)
|
25
|
+
activemodel (= 4.0.13)
|
25
26
|
activerecord-deprecated_finders (~> 1.0.2)
|
26
|
-
activesupport (= 4.0.
|
27
|
+
activesupport (= 4.0.13)
|
27
28
|
arel (~> 4.0.0)
|
28
|
-
activerecord-deprecated_finders (1.0.
|
29
|
-
activesupport (4.0.
|
29
|
+
activerecord-deprecated_finders (1.0.4)
|
30
|
+
activesupport (4.0.13)
|
30
31
|
i18n (~> 0.6, >= 0.6.9)
|
31
32
|
minitest (~> 4.2)
|
32
33
|
multi_json (~> 1.3)
|
33
34
|
thread_safe (~> 0.1)
|
34
35
|
tzinfo (~> 0.3.37)
|
35
36
|
arel (4.0.2)
|
36
|
-
atomic (1.1.16)
|
37
37
|
builder (3.1.4)
|
38
|
-
cucumber (1.3.
|
38
|
+
cucumber (1.3.20)
|
39
39
|
builder (>= 2.1.2)
|
40
40
|
diff-lcs (>= 1.1.3)
|
41
41
|
gherkin (~> 2.12)
|
42
42
|
multi_json (>= 1.7.5, < 2.0)
|
43
|
-
multi_test (>= 0.1.
|
43
|
+
multi_test (>= 0.1.2)
|
44
|
+
cucumber_priority (0.1.0)
|
45
|
+
activesupport
|
46
|
+
cucumber
|
44
47
|
diff-lcs (1.2.5)
|
45
48
|
erubis (2.7.0)
|
46
49
|
gherkin (2.12.2)
|
47
50
|
multi_json (~> 1.3)
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
treetop (~> 1.4.8)
|
53
|
-
mime-types (1.25.1)
|
51
|
+
i18n (0.7.0)
|
52
|
+
mail (2.6.3)
|
53
|
+
mime-types (>= 1.16, < 3)
|
54
|
+
mime-types (2.99)
|
54
55
|
minitest (4.7.5)
|
55
|
-
multi_json (1.
|
56
|
-
multi_test (0.1.
|
57
|
-
|
58
|
-
rack (
|
59
|
-
rack-test (0.6.2)
|
56
|
+
multi_json (1.11.2)
|
57
|
+
multi_test (0.1.2)
|
58
|
+
rack (1.5.5)
|
59
|
+
rack-test (0.6.3)
|
60
60
|
rack (>= 1.0)
|
61
|
-
rails (4.0.
|
62
|
-
actionmailer (= 4.0.
|
63
|
-
actionpack (= 4.0.
|
64
|
-
activerecord (= 4.0.
|
65
|
-
activesupport (= 4.0.
|
61
|
+
rails (4.0.13)
|
62
|
+
actionmailer (= 4.0.13)
|
63
|
+
actionpack (= 4.0.13)
|
64
|
+
activerecord (= 4.0.13)
|
65
|
+
activesupport (= 4.0.13)
|
66
66
|
bundler (>= 1.3.0, < 2.0)
|
67
|
-
railties (= 4.0.
|
68
|
-
sprockets-rails (~> 2.0
|
69
|
-
railties (4.0.
|
70
|
-
actionpack (= 4.0.
|
71
|
-
activesupport (= 4.0.
|
67
|
+
railties (= 4.0.13)
|
68
|
+
sprockets-rails (~> 2.0)
|
69
|
+
railties (4.0.13)
|
70
|
+
actionpack (= 4.0.13)
|
71
|
+
activesupport (= 4.0.13)
|
72
72
|
rake (>= 0.8.7)
|
73
73
|
thor (>= 0.18.1, < 2.0)
|
74
|
-
rake (10.2
|
74
|
+
rake (10.4.2)
|
75
75
|
rspec (2.13.0)
|
76
76
|
rspec-core (~> 2.13.0)
|
77
77
|
rspec-expectations (~> 2.13.0)
|
@@ -87,24 +87,16 @@ GEM
|
|
87
87
|
rspec-core (~> 2.13.0)
|
88
88
|
rspec-expectations (~> 2.13.0)
|
89
89
|
rspec-mocks (~> 2.13.0)
|
90
|
-
sprockets (
|
91
|
-
|
92
|
-
|
93
|
-
rack (~> 1.0)
|
94
|
-
tilt (~> 1.1, != 1.3.0)
|
95
|
-
sprockets-rails (2.0.1)
|
90
|
+
sprockets (3.4.1)
|
91
|
+
rack (> 1, < 3)
|
92
|
+
sprockets-rails (2.3.3)
|
96
93
|
actionpack (>= 3.0)
|
97
94
|
activesupport (>= 3.0)
|
98
|
-
sprockets (
|
99
|
-
sqlite3 (1.3.
|
95
|
+
sprockets (>= 2.8, < 4.0)
|
96
|
+
sqlite3 (1.3.11)
|
100
97
|
thor (0.19.1)
|
101
|
-
thread_safe (0.3.
|
102
|
-
|
103
|
-
tilt (1.4.1)
|
104
|
-
treetop (1.4.15)
|
105
|
-
polyglot
|
106
|
-
polyglot (>= 0.3.1)
|
107
|
-
tzinfo (0.3.39)
|
98
|
+
thread_safe (0.3.5)
|
99
|
+
tzinfo (0.3.45)
|
108
100
|
|
109
101
|
PLATFORMS
|
110
102
|
ruby
|
@@ -113,7 +105,10 @@ DEPENDENCIES
|
|
113
105
|
cucumber (< 2)
|
114
106
|
cucumber_factory!
|
115
107
|
minitest
|
116
|
-
rails (~> 4.0)
|
108
|
+
rails (~> 4.0.0)
|
117
109
|
rspec (~> 2.13.0)
|
118
110
|
rspec-rails
|
119
111
|
sqlite3
|
112
|
+
|
113
|
+
BUNDLED WITH
|
114
|
+
1.10.6
|
@@ -13,7 +13,7 @@ describe 'steps provided by cucumber_factory' do
|
|
13
13
|
|
14
14
|
it "should create ActiveRecord models by calling #new and #save!" do
|
15
15
|
movie = Movie.new
|
16
|
-
Movie.should_receive(:new).with().and_return(movie)
|
16
|
+
Movie.should_receive(:new).with(no_args).and_return(movie)
|
17
17
|
movie.should_receive(:save!)
|
18
18
|
invoke_cucumber_step("there is a movie")
|
19
19
|
end
|
@@ -192,7 +192,7 @@ describe 'steps provided by cucumber_factory' do
|
|
192
192
|
User.stub(:new => user)
|
193
193
|
invoke_cucumber_step('there is a user with the name "Jane" who is deleted')
|
194
194
|
user.name.should == "Jane"
|
195
|
-
user.deleted.should
|
195
|
+
user.deleted.should == true
|
196
196
|
end
|
197
197
|
|
198
198
|
it "should allow to set positive boolean attributes with 'which' after the attribute list" do
|
@@ -200,7 +200,7 @@ describe 'steps provided by cucumber_factory' do
|
|
200
200
|
User.stub(:new => user)
|
201
201
|
invoke_cucumber_step('there is a user with the name "Jane" which is deleted')
|
202
202
|
user.name.should == "Jane"
|
203
|
-
user.deleted.should
|
203
|
+
user.deleted.should == true
|
204
204
|
end
|
205
205
|
|
206
206
|
it "should allow to set positive boolean attributes with 'that' after the attribute list" do
|
@@ -208,50 +208,50 @@ describe 'steps provided by cucumber_factory' do
|
|
208
208
|
User.stub(:new => user)
|
209
209
|
invoke_cucumber_step('there is a user with the name "Jane" that is deleted')
|
210
210
|
user.name.should == "Jane"
|
211
|
-
user.deleted.should
|
211
|
+
user.deleted.should == true
|
212
212
|
end
|
213
213
|
|
214
214
|
it "should allow to set boolean attributes without regular attributes preceding them" do
|
215
215
|
user = User.new
|
216
216
|
User.stub(:new => user)
|
217
217
|
invoke_cucumber_step('there is a user who is deleted')
|
218
|
-
user.deleted.should
|
218
|
+
user.deleted.should == true
|
219
219
|
end
|
220
220
|
|
221
221
|
it "should allow to set negative boolean attribute" do
|
222
222
|
user = User.new
|
223
223
|
User.stub(:new => user)
|
224
224
|
invoke_cucumber_step('there is a user who is not deleted')
|
225
|
-
user.deleted.should
|
225
|
+
user.deleted.should == false
|
226
226
|
end
|
227
227
|
|
228
228
|
it "should allow to set multiple boolean attributes" do
|
229
229
|
user = User.new
|
230
230
|
User.stub(:new => user)
|
231
231
|
invoke_cucumber_step('there is a user who is locked and not deleted and subscribed')
|
232
|
-
user.locked.should
|
233
|
-
user.deleted.should
|
234
|
-
user.subscribed.should
|
232
|
+
user.locked.should == true
|
233
|
+
user.deleted.should == false
|
234
|
+
user.subscribed.should == true
|
235
235
|
end
|
236
236
|
|
237
237
|
it "should allow to set boolean attributes that are named from multiple words" do
|
238
238
|
user = User.new
|
239
239
|
User.stub(:new => user)
|
240
240
|
invoke_cucumber_step('there is a user who is locked and not scared and scared by spiders and deleted')
|
241
|
-
user.locked.should
|
242
|
-
user.scared.should
|
243
|
-
user.scared_by_spiders.should
|
244
|
-
user.deleted.should
|
241
|
+
user.locked.should == true
|
242
|
+
user.scared.should == false
|
243
|
+
user.scared_by_spiders.should == true
|
244
|
+
user.deleted.should == true
|
245
245
|
end
|
246
246
|
|
247
247
|
it "should allow to join boolean attribute lists with 'and's, commas and 'but's" do
|
248
248
|
user = User.new
|
249
249
|
User.stub(:new => user)
|
250
250
|
invoke_cucumber_step('there is a user who is locked, scared, but scared by spiders and deleted')
|
251
|
-
user.locked.should
|
252
|
-
user.scared.should
|
253
|
-
user.scared_by_spiders.should
|
254
|
-
user.deleted.should
|
251
|
+
user.locked.should == true
|
252
|
+
user.scared.should == true
|
253
|
+
user.scared_by_spiders.should == true
|
254
|
+
user.deleted.should == true
|
255
255
|
end
|
256
256
|
|
257
257
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber_factory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,65 +9,17 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-11-
|
12
|
+
date: 2015-11-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '2.3'
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '2.3'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: rspec
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - <
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '2'
|
38
|
-
type: :development
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - <
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '2'
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: rspec-rails
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - '='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 1.3.4
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - '='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 1.3.4
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: sqlite3
|
15
|
+
name: cucumber
|
64
16
|
requirement: !ruby/object:Gem::Requirement
|
65
17
|
none: false
|
66
18
|
requirements:
|
67
19
|
- - ! '>='
|
68
20
|
- !ruby/object:Gem::Version
|
69
21
|
version: '0'
|
70
|
-
type: :
|
22
|
+
type: :runtime
|
71
23
|
prerelease: false
|
72
24
|
version_requirements: !ruby/object:Gem::Requirement
|
73
25
|
none: false
|
@@ -76,7 +28,7 @@ dependencies:
|
|
76
28
|
- !ruby/object:Gem::Version
|
77
29
|
version: '0'
|
78
30
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
31
|
+
name: activesupport
|
80
32
|
requirement: !ruby/object:Gem::Requirement
|
81
33
|
none: false
|
82
34
|
requirements:
|
@@ -92,7 +44,7 @@ dependencies:
|
|
92
44
|
- !ruby/object:Gem::Version
|
93
45
|
version: '0'
|
94
46
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
47
|
+
name: cucumber_priority
|
96
48
|
requirement: !ruby/object:Gem::Requirement
|
97
49
|
none: false
|
98
50
|
requirements:
|
@@ -122,7 +74,6 @@ files:
|
|
122
74
|
- cucumber_factory.gemspec
|
123
75
|
- lib/cucumber/factory.rb
|
124
76
|
- lib/cucumber/factory/build_strategy.rb
|
125
|
-
- lib/cucumber/runtime_ext.rb
|
126
77
|
- lib/cucumber_factory.rb
|
127
78
|
- lib/cucumber_factory/switcher.rb
|
128
79
|
- lib/cucumber_factory/version.rb
|
data/lib/cucumber/runtime_ext.rb
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
require 'cucumber/runtime'
|
2
|
-
|
3
|
-
module Cucumber
|
4
|
-
|
5
|
-
class Ambiguous
|
6
|
-
|
7
|
-
attr_reader :matches
|
8
|
-
|
9
|
-
def initialize_with_remembering_matches(step_name, matches, *args)
|
10
|
-
@matches = matches
|
11
|
-
initialize_without_remembering_matches(step_name, matches, *args)
|
12
|
-
end
|
13
|
-
|
14
|
-
alias_method_chain :initialize, :remembering_matches
|
15
|
-
|
16
|
-
end
|
17
|
-
|
18
|
-
(defined?(Runtime) ? Runtime : StepMother).class_eval do
|
19
|
-
|
20
|
-
def step_match_with_factory_priority(*args)
|
21
|
-
step_match_without_factory_priority(*args)
|
22
|
-
rescue Ambiguous => e
|
23
|
-
non_factory_matches = e.matches.reject do |match|
|
24
|
-
Cucumber::Factory.step_definitions.include?(match.step_definition)
|
25
|
-
end
|
26
|
-
if non_factory_matches.size == 1
|
27
|
-
non_factory_matches.first
|
28
|
-
else
|
29
|
-
raise
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
alias_method_chain :step_match, :factory_priority
|
34
|
-
|
35
|
-
end
|
36
|
-
|
37
|
-
end
|