cukedep 0.1.08 → 0.1.09

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWRhNGZmMDMzMThmODZkZWE5ODlkMGU4MzRjZDVjZTVjY2U1MGNmMQ==
4
+ NjVlOGEwMmI3NTMxODJjOWI4YWU0MjlhZTIxNmU4NmZkNzcxYTNiOQ==
5
5
  data.tar.gz: !binary |-
6
- MzgzYTA5YTYwODQ2MzkzNjU0YjJhYzA0Y2M2ZThiODg3M2VmNTU5MA==
6
+ N2E5YjU5Njc3MDIzMDIwMWM5NDFlMjk5ZjFmZjg1OTBlZTY5NzE1ZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjM3OTZjMzVmNTlmNTc2YWU2ZmIyMGY5NGMzM2RjMDQxNDY5ODBjMzQ0MWU1
10
- ZDBlN2M5ZjkzNWM0NDM0NWVlNDFhYzdiNzUzNjU0NTQyM2E1NmNiZTk2YTQz
11
- MWZlYTMxNGQ1NGFjYWMwMjQ5OWQ0YjkxYzc0YzY1YzE3YWEyZGY=
9
+ MzIyMGNiOGY2ZDVjYmY4MTI5MDliNTFhNDg1ZjViOTJiY2Y5MzU1ZjA5NjNh
10
+ OGFhYjZhYzUyOWY4MDI2ZmIxNDc1ZDJkMjUyNzRjNWJmZTMzYjNhN2Y1YmFj
11
+ NDc0MDk4MWRlYTMxODg1ZTliYjBjODg0ODM0NmQ2MTNmMTVmZDk=
12
12
  data.tar.gz: !binary |-
13
- YmY4YWNjMWVkMTQyOTYyNmUwMTFlZThkMWVlNzg2NTcxN2Q0YmJiMmQzNjBj
14
- ZjE1YmM0Y2M1YWEzMGMwM2M0NThmYWIwNmMxZjdhMWRhM2E3ZTNjYjc1ZWMw
15
- YTczNjVlODI3OWZkZTlhMDBlM2VmMjcwNTc5NGRlZmM1OTg1ZTc=
13
+ ZTBlNTIwNDY5ZmNjNTdmYmRjNjk1NTZhNjE5NmIzNmM4MGJiOTNiZmQwYzg3
14
+ NWRmNDBmOGZhYTE4NzQ1OTI2YmI5MmE1MWRlNzljODY1ODYxZGRmM2NlZmQw
15
+ NWM4YWY1YjFjMDk1NDZiZjQ4NGZjYTU3NjM4MDhlMWNlZjg4ZTY=
@@ -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
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Cukedep # Module used as a namespace
5
5
  # The version number of the gem.
6
- Version = '0.1.08'
6
+ Version = '0.1.09'
7
7
 
8
8
  # Brief description of the gem.
9
9
  Description = 'Manage dependencies between Cucumber feature files'
@@ -150,13 +150,11 @@ class CukeRunner
150
150
  # Execute before each hook code
151
151
  run_code_block(fileNames)
152
152
 
153
- builtin_actions = ActionTriplet.builtin(:before_each).dup
154
- unless builtin_actions.nil?
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([builtin_actions, custom_actions])
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).not_to eq(a_state.to_sym)
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).should be_nil
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).should_not be_nil
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
- #expect($store.search_user(@entered_credential)).to be_nil
64
+ expect($store.search_user(@entered_credential)).not_to be_nil
65
65
  puts "Welcome to the rental application."
66
66
  end
67
67
 
@@ -1,4 +1,13 @@
1
1
  ---
2
2
  - !ruby/struct:Sample::Video
3
- title: Othello
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
@@ -1 +1,4 @@
1
- --- []
1
+ ---
2
+ - !ruby/struct:Sample::Rental
3
+ video: The masked Cucumber
4
+ member: John Doe
@@ -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" http-equiv="Content-Type"/><title>Cucumber</title><style type="text/css">/* cucumber.css is generated from cucumber.sass */
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 12--><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='features\a_few_tests_feature_9' 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('8.3');</script><li id='features\a_few_tests_feature_10' class='step passed'><div class="step_name"><span class="keyword">When </span><span class="step val">I enter the credentials &quot;<span class="param">it's me</span>&quot;</span></div><div class="step_file"><span>features/step_definitions/steps.rb:50</span></div></li> <script type="text/javascript">moveProgressBar('16.6');</script><li id='features\a_few_tests_feature_11' 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('25.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='features\a_few_tests_feature_15' class='step skipped'><div class="step_name"><span class="keyword">When </span><span class="step val">I register my credentials &quot;&lt;credentials&gt;&quot;</span></div><div class="step_file"><span>features/step_definitions/steps.rb:59</span></div></li> <script type="text/javascript">moveProgressBar('33.3');</script><li id='features\a_few_tests_feature_16' class='step skipped'><div class="step_name"><span class="keyword">When </span><span class="step val">I enter the credentials &quot;&lt;credentials&gt;&quot;</span></div><div class="step_file"><span>features/step_definitions/steps.rb:50</span></div></li> <script type="text/javascript">moveProgressBar('41.6');</script><li id='features\a_few_tests_feature_17' 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/step_definitions/steps.rb:63</span></div></li> <script type="text/javascript">moveProgressBar('50.0');</script></ol><div class="examples"><h4><span class="keyword">Examples</span> <span class="val"></span></h4><table><tr class='step' id='row_20'><th class="step skipped_param" id="row_20_0"><div><span class="step param">credentials</span></div></th></tr> <script type="text/javascript">moveProgressBar('58.3');</script><tr class='step' id='row_21'><td class="step passed" id="row_21_0"><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('66.6');</script><tr class='step' id='row_22'><td class="step passed" id="row_22_0"><div><span class="step param">himself</span></div></td><td class="message">Welcome to the rental application.</td></tr> <script type="text/javascript">moveProgressBar('75.0');</script><tr class='step' id='row_23'><td class="step passed" id="row_23_0"><div><span class="step param">nemo</span></div></td><td class="message">Welcome to the rental application.</td></tr> <script type="text/javascript">moveProgressBar('83.3');</script></table></div></div></div><script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>0m0.031s seconds</strong>";</script><script type="text/javascript">document.getElementById('totals').innerHTML = "4 scenarios (4 passed)<br />12 steps (12 passed)";</script></div></body></html>
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 &quot;<span class="param">it's me</span>&quot;</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 &quot;&lt;credentials&gt;&quot;</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 &quot;&lt;credentials&gt;&quot;</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>
@@ -1,5 +1,5 @@
1
1
  # File: cukedep.rake
2
- # Generated by Cukedep 0.1.08 on 06/07/2014 12:16:27
2
+ # Generated by Cukedep 0.1.09 on 02/04/2015 21:15:29
3
3
 
4
4
  require 'rake'
5
5
 
@@ -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 Sun Jul 6 12:16:27 2014.
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.08
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: 2014-07-06 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber