cucumber 0.10.3 → 0.10.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +21 -8
- data/cucumber.gemspec +5 -5
- data/examples/sinatra/features/support/env.rb +1 -1
- data/examples/v8/features/fibonacci.feature +1 -1
- data/examples/watir/features/step_definitions/search_steps.rb +1 -1
- data/features/json_formatter.feature +1 -2
- data/features/transforms.feature +2 -2
- data/fixtures/junit/features/scenario_outline.feature +9 -0
- data/fixtures/tickets/features.html +1 -1
- data/gem_tasks/sdoc.rake +1 -1
- data/legacy_features/announce.feature +48 -60
- data/legacy_features/bug_371.feature +2 -2
- data/legacy_features/bug_600.feature +10 -4
- data/legacy_features/html_formatter/a.html +2 -2
- data/legacy_features/junit_formatter.feature +30 -1
- data/legacy_features/profiles.feature +1 -1
- data/legacy_features/step_definitions/cucumber_steps.rb +4 -0
- data/lib/cucumber/ast.rb +1 -1
- data/lib/cucumber/ast/{py_string.rb → doc_string.rb} +6 -6
- data/lib/cucumber/ast/tree_walker.rb +4 -4
- data/lib/cucumber/formatter/console.rb +20 -18
- data/lib/cucumber/formatter/cucumber.css +2 -2
- data/lib/cucumber/formatter/cucumber.sass +13 -13
- data/lib/cucumber/formatter/html.rb +23 -23
- data/lib/cucumber/formatter/junit.rb +5 -1
- data/lib/cucumber/formatter/pdf.rb +6 -6
- data/lib/cucumber/formatter/pretty.rb +5 -5
- data/lib/cucumber/parser/gherkin_builder.rb +2 -2
- data/lib/cucumber/platform.rb +1 -1
- data/lib/cucumber/rake/task.rb +13 -1
- data/lib/cucumber/rb_support/rb_language.rb +1 -1
- data/lib/cucumber/rb_support/rb_world.rb +24 -16
- data/lib/cucumber/runtime.rb +1 -1
- data/lib/cucumber/runtime/for_programming_languages.rb +3 -3
- data/lib/cucumber/runtime/support_code.rb +1 -1
- data/lib/cucumber/runtime/user_interface.rb +12 -11
- data/lib/cucumber/step_match.rb +1 -1
- data/spec/cucumber/ast/doc_string_spec.rb +40 -0
- data/spec/cucumber/ast/feature_factory.rb +2 -2
- data/spec/cucumber/ast/feature_spec.rb +1 -1
- data/spec/cucumber/ast/step_spec.rb +2 -2
- data/spec/cucumber/formatter/junit_spec.rb +1 -0
- data/spec/cucumber/rb_support/rb_language_spec.rb +1 -1
- data/spec/cucumber/rb_support/rb_step_definition_spec.rb +3 -3
- metadata +14 -13
- data/spec/cucumber/ast/py_string_spec.rb +0 -40
@@ -1,40 +0,0 @@
|
|
1
|
-
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
2
|
-
require 'cucumber/ast/py_string'
|
3
|
-
|
4
|
-
module Cucumber
|
5
|
-
module Ast
|
6
|
-
describe PyString do
|
7
|
-
describe "replacing arguments" do
|
8
|
-
|
9
|
-
before(:each) do
|
10
|
-
@ps = PyString.new("<book>\n<qty>\n")
|
11
|
-
end
|
12
|
-
|
13
|
-
it "should return a new py_string with arguments replaced with values" do
|
14
|
-
py_string_with_replaced_arg = @ps.arguments_replaced({'<book>' => 'Life is elsewhere', '<qty>' => '5'})
|
15
|
-
|
16
|
-
py_string_with_replaced_arg.to_step_definition_arg.should == "Life is elsewhere\n5\n"
|
17
|
-
end
|
18
|
-
|
19
|
-
it "should not change the original py_string" do
|
20
|
-
py_string_with_replaced_arg = @ps.arguments_replaced({'<book>' => 'Life is elsewhere'})
|
21
|
-
|
22
|
-
@ps.to_s.should_not include("Life is elsewhere")
|
23
|
-
end
|
24
|
-
|
25
|
-
it "should replaced nil with empty string" do
|
26
|
-
ps = PyString.new("'<book>'")
|
27
|
-
py_string_with_replaced_arg = ps.arguments_replaced({'<book>' => nil})
|
28
|
-
|
29
|
-
py_string_with_replaced_arg.to_step_definition_arg.should == "''"
|
30
|
-
end
|
31
|
-
|
32
|
-
it "should recognise when just a subset of a cell is delimited" do
|
33
|
-
@ps.should have_text('<qty>')
|
34
|
-
end
|
35
|
-
|
36
|
-
end
|
37
|
-
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|