aslakhellesoy-cucumber 0.3.11.1 → 0.3.11.3
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.
- data/History.txt +4 -0
- data/Manifest.txt +1 -5
- data/cucumber.yml +1 -0
- data/features/drb_server_integration.feature +24 -2
- data/features/html_formatter/a.html +126 -1615
- data/features/support/env.rb +1 -1
- data/gem_tasks/sass.rake +4 -0
- data/lib/cucumber/cli/drb_client.rb +8 -9
- data/lib/cucumber/cli/main.rb +4 -4
- data/lib/cucumber/formatter/cucumber.css +103 -50
- data/lib/cucumber/formatter/cucumber.sass +116 -31
- data/lib/cucumber/formatter/html.rb +1 -1
- data/lib/cucumber/version.rb +1 -1
- data/rails_generators/cucumber/templates/spork_env.rb +1 -1
- data/spec/cucumber/cli/drb_client_spec.rb +5 -4
- data/spec/cucumber/cli/main_spec.rb +8 -2
- data/spec/spec_helper.rb +2 -0
- metadata +5 -9
- data/spec/cucumber/formatter/html/cucumber.css +0 -37
- data/spec/cucumber/formatter/html/cucumber.js +0 -13
- data/spec/cucumber/formatter/html/index.html +0 -45
- data/spec/cucumber/formatter/html/jquery-1.3.min.js +0 -19
- data/spec/cucumber/formatter/html/jquery.uitableedit.js +0 -100
data/History.txt
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
== 0.3.12 (In Git)
|
2
2
|
|
3
|
+
=== Bugfixes
|
4
|
+
* CLI issues correct exit code when using --drb. Requires Spork version >= 0.5.1. (#355 Ben Mabey)
|
5
|
+
* Make sure script/generate cucumber --spork uses the cucumber Rails environment (Philippe Lafoucrière)
|
6
|
+
|
3
7
|
=== Changed Features
|
4
8
|
* The data returned from Table#hashes and similar methods are frozen. Dup if you need to modify. (Aslak Hellesøy)
|
5
9
|
|
data/Manifest.txt
CHANGED
@@ -272,6 +272,7 @@ gem_tasks/fix_cr_lf.rake
|
|
272
272
|
gem_tasks/flog.rake
|
273
273
|
gem_tasks/gemspec.rake
|
274
274
|
gem_tasks/rspec.rake
|
275
|
+
gem_tasks/sass.rake
|
275
276
|
gem_tasks/yard.rake
|
276
277
|
lib/autotest/cucumber.rb
|
277
278
|
lib/autotest/cucumber_mixin.rb
|
@@ -373,11 +374,6 @@ spec/cucumber/core_ext/string_spec.rb
|
|
373
374
|
spec/cucumber/formatter/ansicolor_spec.rb
|
374
375
|
spec/cucumber/formatter/color_io_spec.rb
|
375
376
|
spec/cucumber/formatter/duration_spec.rb
|
376
|
-
spec/cucumber/formatter/html/cucumber.css
|
377
|
-
spec/cucumber/formatter/html/cucumber.js
|
378
|
-
spec/cucumber/formatter/html/index.html
|
379
|
-
spec/cucumber/formatter/html/jquery-1.3.min.js
|
380
|
-
spec/cucumber/formatter/html/jquery.uitableedit.js
|
381
377
|
spec/cucumber/formatter/progress_spec.rb
|
382
378
|
spec/cucumber/parser/feature_parser_spec.rb
|
383
379
|
spec/cucumber/parser/table_parser_spec.rb
|
data/cucumber.yml
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
@in_progress
|
2
1
|
Feature: DRb Server Integration
|
3
2
|
To prevent waiting for Rails and other large Ruby applications to load their environments
|
4
3
|
for each feature run Cucumber ships with a DRb client that can speak to a server which
|
@@ -35,7 +34,7 @@ Feature: DRb Server Integration
|
|
35
34
|
end
|
36
35
|
"""
|
37
36
|
|
38
|
-
Scenario: Feature
|
37
|
+
Scenario: Feature Passing with --drb flag
|
39
38
|
Given I am running "spork cuc" in the background
|
40
39
|
|
41
40
|
When I run cucumber features/sample.feature --drb
|
@@ -53,6 +52,29 @@ Feature: DRb Server Integration
|
|
53
52
|
I'm loading all the heavy stuff...
|
54
53
|
"""
|
55
54
|
|
55
|
+
Scenario: Feature Failing with --drb flag
|
56
|
+
Given a file named "features/step_definitions/all_your_steps_are_belong_to_us.rb" with:
|
57
|
+
"""
|
58
|
+
Given /^I am just testing stuff$/ do
|
59
|
+
raise "Oh noes!"
|
60
|
+
end
|
61
|
+
"""
|
62
|
+
And I am running "spork cuc" in the background
|
63
|
+
|
64
|
+
When I run cucumber features/sample.feature --drb
|
65
|
+
Then it should fail
|
66
|
+
And the output should contain
|
67
|
+
"""
|
68
|
+
1 step (1 failed)
|
69
|
+
"""
|
70
|
+
And the output should contain
|
71
|
+
"""
|
72
|
+
I'm loading the stuff just for this run...
|
73
|
+
"""
|
74
|
+
And the output should not contain
|
75
|
+
"""
|
76
|
+
I'm loading all the heavy stuff...
|
77
|
+
"""
|
56
78
|
|
57
79
|
Scenario: Feature Run with --drb flag with no DRb server running
|
58
80
|
Cucumber will fall back on running the features locally in this case.
|