cukedep 0.1.08 → 0.1.09
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/CHANGELOG.md +8 -0
- data/lib/cukedep/constants.rb +1 -1
- data/lib/cukedep/cuke-runner.rb +3 -5
- data/sample/features/step_definitions/steps.rb +4 -4
- data/sample/model/catalogue.yml +10 -1
- data/sample/model/rentals.yml +4 -1
- data/sample/result.html +2 -2
- data/spec/cukedep/sample_features/cukedep.rake +1 -1
- data/spec/cukedep/sample_features/dependencies.dot +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjVlOGEwMmI3NTMxODJjOWI4YWU0MjlhZTIxNmU4NmZkNzcxYTNiOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2E5YjU5Njc3MDIzMDIwMWM5NDFlMjk5ZjFmZjg1OTBlZTY5NzE1ZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzIyMGNiOGY2ZDVjYmY4MTI5MDliNTFhNDg1ZjViOTJiY2Y5MzU1ZjA5NjNh
|
10
|
+
OGFhYjZhYzUyOWY4MDI2ZmIxNDc1ZDJkMjUyNzRjNWJmZTMzYjNhN2Y1YmFj
|
11
|
+
NDc0MDk4MWRlYTMxODg1ZTliYjBjODg0ODM0NmQ2MTNmMTVmZDk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTBlNTIwNDY5ZmNjNTdmYmRjNjk1NTZhNjE5NmIzNmM4MGJiOTNiZmQwYzg3
|
14
|
+
NWRmNDBmOGZhYTE4NzQ1OTI2YmI5MmE1MWRlNzljODY1ODYxZGRmM2NlZmQw
|
15
|
+
NWM4YWY1YjFjMDk1NDZiZjQ4NGZjYTU3NjM4MDhlMWNlZjg4ZTY=
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
### 0.1.09 / 2015-04-02
|
2
|
+
* [TEST] Regression tests with Cucumber 2.0.0: all pass, no code change required
|
3
|
+
* [FIX] File `steps.rb` from sample/features/step_definitions. Replaced deprecated RSpec should syntax by new expect.
|
4
|
+
|
5
|
+
### 0.1.08 / 2014-07-06
|
6
|
+
* [CHANGE] File `.rubocop.yml`. Removed AccessControl cop.
|
7
|
+
* [CHANGE] File `CukeRunner#before_each`. Minor refactoring to please Rubocop 0.26.1
|
8
|
+
|
1
9
|
### 0.1.08 / 2014-07-06
|
2
10
|
* [CHANGE] Most source files comply to Rubocop 0.24.1.
|
3
11
|
|
data/lib/cukedep/constants.rb
CHANGED
data/lib/cukedep/cuke-runner.rb
CHANGED
@@ -150,13 +150,11 @@ class CukeRunner
|
|
150
150
|
# Execute before each hook code
|
151
151
|
run_code_block(fileNames)
|
152
152
|
|
153
|
-
|
154
|
-
unless
|
155
|
-
builtin_actions.copy_action.patterns = fileNames
|
156
|
-
end
|
153
|
+
builtins = ActionTriplet.builtin(:before_each).dup
|
154
|
+
builtins.copy_action.patterns = fileNames unless builtins.nil?
|
157
155
|
|
158
156
|
custom_actions = ActionTriplet.new(config.before_each_f_actions)
|
159
|
-
run_triplets([
|
157
|
+
run_triplets([builtins, custom_actions])
|
160
158
|
end
|
161
159
|
|
162
160
|
|
@@ -15,7 +15,7 @@ end
|
|
15
15
|
|
16
16
|
Then(/^I should see the video "(.*?)" as (available)$/) do |a_title, a_state|
|
17
17
|
found_video = $store.search_video(a_title)
|
18
|
-
expect(found_video.state).
|
18
|
+
expect(found_video.state).to eq(a_state.to_sym)
|
19
19
|
end
|
20
20
|
|
21
21
|
When(/^I remove the video "(.*?)"$/) do |a_title|
|
@@ -30,11 +30,11 @@ Given(/^there is no member yet$/) do
|
|
30
30
|
end
|
31
31
|
|
32
32
|
Then(/^I should see member "(.*?)" as unknown$/) do |member_name|
|
33
|
-
$store.search_member(member_name).
|
33
|
+
expect($store.search_member(member_name)).to be_nil
|
34
34
|
end
|
35
35
|
|
36
36
|
Then(/^I should see member "(.*?)" as registered$/) do |member_name|
|
37
|
-
$store.search_member(member_name).
|
37
|
+
expect($store.search_member(member_name)).not_to be_nil
|
38
38
|
puts "Member #{member_name} is registered."
|
39
39
|
end
|
40
40
|
|
@@ -61,7 +61,7 @@ When(/^I register my credentials "(.*?)"$/) do |credential|
|
|
61
61
|
end
|
62
62
|
|
63
63
|
Then(/^I should see a welcome message$/) do
|
64
|
-
|
64
|
+
expect($store.search_user(@entered_credential)).not_to be_nil
|
65
65
|
puts "Welcome to the rental application."
|
66
66
|
end
|
67
67
|
|
data/sample/model/catalogue.yml
CHANGED
@@ -1,4 +1,13 @@
|
|
1
1
|
---
|
2
2
|
- !ruby/struct:Sample::Video
|
3
|
-
title:
|
3
|
+
title: The empire of Cucumber
|
4
|
+
state: :available
|
5
|
+
- !ruby/struct:Sample::Video
|
6
|
+
title: The revenge of the Cucumber
|
7
|
+
state: :available
|
8
|
+
- !ruby/struct:Sample::Video
|
9
|
+
title: The peeled Cucumber
|
10
|
+
state: :available
|
11
|
+
- !ruby/struct:Sample::Video
|
12
|
+
title: The masked Cucumber
|
4
13
|
state: :available
|
data/sample/model/rentals.yml
CHANGED
data/sample/result.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns ="http://www.w3.org/1999/xhtml"><head><meta content="text/html;charset=utf-8"
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns ="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8"/><title>Cucumber</title><style type="text/css">/* cucumber.css is generated from cucumber.sass */
|
2
2
|
/* Regenerate with rake sass */
|
3
3
|
body {
|
4
4
|
font-size: 0px;
|
@@ -469,4 +469,4 @@ e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["
|
|
469
469
|
$('#'+element_id).css('color', '#000000');
|
470
470
|
}
|
471
471
|
|
472
|
-
</script></head><body><!-- Step count
|
472
|
+
</script></head><body><!-- Step count 0--><div class="cucumber"><div id="cucumber-header"><div id="label"><h1>Cucumber Features</h1></div><div id="summary"><p id="totals"></p><p id="duration"></p><div id="expand-collapse"><p id="expander">Expand All</p><p id="collapser">Collapse All</p></div></div></div><div class="feature"><span class="tag">@a_few</span> <span class="tag">@feature:qux</span><h2><span class="val">Feature: Registering user credentials</span></h2><p class="narrative">As a video rental employee<br/>I want to enter my credentials<br/>So I can identify myself when use the rental application<br/></p><div class='scenario'><span class="scenario_file">features/a_few_tests.feature:8</span><h3 id="scenario_1"><span class="keyword">Scenario:</span> <span class="val">Start without credentials</span></h3><ol><li id='' class='step passed'><div class="step_name"><span class="keyword">Given </span><span class="step val">there is no registered user</span></div><div class="step_file"><span>features/step_definitions/steps.rb:46</span></div></li> <script type="text/javascript">moveProgressBar('100.0');</script><li id='' class='step passed'><div class="step_name"><span class="keyword">When </span><span class="step val">I enter the credentials "<span class="param">it's me</span>"</span></div><div class="step_file"><span>features/step_definitions/steps.rb:50</span></div></li> <script type="text/javascript">moveProgressBar('100.0');</script><li id='' class='step passed'><div class="step_name"><span class="keyword">Then </span><span class="step val">I should not be authorized</span></div><div class="step_file"><span>features/step_definitions/steps.rb:54</span></div></li><li class="step message">Invalid user credential</li> <script type="text/javascript">moveProgressBar('100.0');</script></ol></div><div class='scenario outline'><span class="scenario_file">features/a_few_tests.feature:14</span><h3 id="scenario_2"><span class="keyword">Scenario Outline:</span> <span class="val">Registering some credentials</span></h3><ol><li id='' class='step skipped'><div class="step_name"><span class="keyword">When </span><span class="step val">I register my credentials "<credentials>"</span></div><div class="step_file"><span>features/a_few_tests.feature:15</span></div></li> <script type="text/javascript">moveProgressBar('100.0');</script><li id='' class='step skipped'><div class="step_name"><span class="keyword">When </span><span class="step val">I enter the credentials "<credentials>"</span></div><div class="step_file"><span>features/a_few_tests.feature:16</span></div></li> <script type="text/javascript">moveProgressBar('100.0');</script><li id='' class='step skipped'><div class="step_name"><span class="keyword">Then </span><span class="step val">I should see a welcome message</span></div><div class="step_file"><span>features/a_few_tests.feature:17</span></div></li> <script type="text/javascript">moveProgressBar('100.0');</script></ol><div class="examples"><h4><span class="keyword">Examples</span> <span class="val"></span></h4><table><tr class='step' id='features_a_few_tests_feature_19'><th id="features_a_few_tests_feature_19_0" class="step skipped_param"><div><span class="step param">credentials</span></div></th></tr> <script type="text/javascript">moveProgressBar('100.0');</script><tr class='step' id='features_a_few_tests_feature_21'><td id="features_a_few_tests_feature_21_0" class="step passed"><div><span class="step param">it's me</span></div></td><td class="message">Welcome to the rental application.</td></tr> <script type="text/javascript">moveProgressBar('100.0');</script><tr class='step' id='features_a_few_tests_feature_22'><td id="features_a_few_tests_feature_22_0" class="step passed"><div><span class="step param">himself</span></div></td><td class="message">Welcome to the rental application.</td></tr> <script type="text/javascript">moveProgressBar('100.0');</script><tr class='step' id='features_a_few_tests_feature_23'><td id="features_a_few_tests_feature_23_0" class="step passed"><div><span class="step param">nemo</span></div></td><td class="message">Welcome to the rental application.</td></tr> <script type="text/javascript">moveProgressBar('100.0');</script></table></div></div></div><script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>0m0.016s seconds</strong>";</script><script type="text/javascript">document.getElementById('totals').innerHTML = "4 scenarios (4 passed)<br />12 steps (12 passed)";</script></div></body></html>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// 'C:/Ruby193/lib/ruby/site_ruby/Cukedep/spec/cukedep/sample_features'
|
3
3
|
// This file uses the DOT syntax, a free utility from the Graphviz toolset.
|
4
4
|
// Graphviz is available at: www.graphviz.org
|
5
|
-
// File generated on
|
5
|
+
// File generated on Thu Apr 2 21:15:29 2015.
|
6
6
|
|
7
7
|
digraph g {
|
8
8
|
size = "7, 11"; // Dimensions in inches...
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cukedep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.09
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitri Geshef
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|