cucumber 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +25 -0
- data/Rakefile +4 -3
- data/VERSION.yml +3 -2
- data/cucumber.gemspec +21 -16
- data/cucumber.yml +5 -3
- data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/bg/features/support/env.rb +1 -2
- data/examples/i18n/cat/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/da/features/step_definitons/lommeregner_steps.rb +1 -1
- data/examples/i18n/de/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/en-lol/features/support/env.rb +0 -1
- data/examples/i18n/en/features/step_definitons/calculator_steps.rb +2 -2
- data/examples/i18n/es/features/step_definitons/calculador_steps.rb +2 -2
- data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +1 -1
- data/examples/i18n/fi/features/step_definitons/laskin_steps.rb +1 -1
- data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +0 -6
- data/examples/i18n/fr/features/support/env.rb +5 -0
- data/examples/i18n/he/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/he/lib/calculator.rb +1 -0
- data/examples/i18n/hu/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/id/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/it/features/step_definitons/calcolatrice_steps.rb +1 -1
- data/examples/i18n/ja/features/step_definitons/calculator_steps.rb +0 -5
- data/examples/i18n/ja/features/support/env.rb +5 -0
- data/examples/i18n/ko/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/lt/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/lv/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/no/features/support/env.rb +1 -2
- data/examples/i18n/pl/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/pl/features/support/env.rb +1 -2
- data/examples/i18n/pt/features/support/env.rb +1 -2
- data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/ru/features/support/env.rb +1 -2
- data/examples/i18n/se/features/step_definitons/kalkulator_steps.rb +1 -1
- data/examples/i18n/sk/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/sr-latn/features/step_definitons/calculator_steps.rb +3 -3
- data/examples/i18n/sr/features/step_definitons/calculator_steps.rb +1 -5
- data/examples/i18n/sr/features/support/env.rb +5 -0
- data/examples/i18n/tr/features/step_definitons/hesap_makinesi_adimlari.rb +1 -1
- data/examples/i18n/uz/features/support/env.rb +1 -2
- data/examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/self_test/features/step_definitions/sample_steps.rb +2 -0
- data/examples/watir/features/support/screenshots.rb +20 -17
- data/features/call_many_steps.feature +2 -0
- data/features/cucumber_cli.feature +7 -4
- data/features/html_formatter.feature +1 -0
- data/features/html_formatter/a.html +2 -2
- data/features/language_help.feature +1 -0
- data/features/step_definitions/cucumber_steps.rb +3 -3
- data/features/support/env.rb +7 -5
- data/features/tag_logic.feature +7 -7
- data/features/wire_protocol.feature +1 -1
- data/gem_tasks/features.rake +2 -0
- data/lib/autotest/cucumber_mixin.rb +4 -4
- data/lib/cucumber/ast.rb +0 -1
- data/lib/cucumber/ast/feature.rb +9 -12
- data/lib/cucumber/ast/feature_element.rb +4 -4
- data/lib/cucumber/ast/features.rb +2 -2
- data/lib/cucumber/ast/table.rb +1 -0
- data/lib/cucumber/ast/tags.rb +1 -97
- data/lib/cucumber/cli/configuration.rb +3 -1
- data/lib/cucumber/cli/main.rb +20 -23
- data/lib/cucumber/cli/options.rb +9 -18
- data/lib/cucumber/filter.rb +4 -2
- data/lib/cucumber/formatter/console.rb +8 -28
- data/lib/cucumber/formatter/html.rb +1 -1
- data/lib/cucumber/formatter/pdf.rb +0 -4
- data/lib/cucumber/formatter/pretty.rb +1 -2
- data/lib/cucumber/formatter/progress.rb +1 -5
- data/lib/cucumber/formatter/rerun.rb +2 -0
- data/lib/cucumber/formatter/unicode.rb +6 -6
- data/lib/cucumber/language_support/language_methods.rb +0 -1
- data/lib/cucumber/parser/common.rb +16 -4
- data/lib/cucumber/parser/feature.rb +92 -27
- data/lib/cucumber/parser/feature.tt +8 -6
- data/lib/cucumber/parser/py_string.rb +12 -3
- data/lib/cucumber/parser/table.rb +12 -3
- data/lib/cucumber/rb_support/rb_dsl.rb +6 -6
- data/lib/cucumber/rb_support/rb_hook.rb +4 -5
- data/lib/cucumber/rb_support/rb_language.rb +1 -1
- data/lib/cucumber/tag_expression.rb +41 -0
- data/spec/cucumber/ast/feature_spec.rb +23 -2
- data/spec/cucumber/ast/scenario_outline_spec.rb +0 -7
- data/spec/cucumber/cli/options_spec.rb +3 -3
- data/spec/cucumber/formatter/html_spec.rb +10 -0
- data/spec/cucumber/formatter/spec_helper.rb +2 -1
- data/spec/cucumber/tag_expression_spec.rb +127 -0
- metadata +15 -10
- data/spec/cucumber/ast/tags_spec.rb +0 -29
- data/spec/cucumber/formatter/console_spec.rb +0 -20
@@ -1,29 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../../spec_helper'
|
2
|
-
require 'cucumber/ast/tags'
|
3
|
-
|
4
|
-
module Cucumber
|
5
|
-
module Ast
|
6
|
-
describe Tags do
|
7
|
-
describe "#matches" do
|
8
|
-
it "should AND tags which are are in a list" do
|
9
|
-
Tags.matches?(['@one','@two','@three'], [['@one','@two']]).should == true
|
10
|
-
Tags.matches?(['@one','@three'], [['@one','@two']]).should == false
|
11
|
-
end
|
12
|
-
|
13
|
-
it "should OR tags in different lists" do
|
14
|
-
Tags.matches?(['@one'], [['@one'], ['@two']]).should == true
|
15
|
-
end
|
16
|
-
|
17
|
-
it "should AND and OR tags" do
|
18
|
-
Tags.matches?(['@one','@two'], [['@one'],['@two','@four']]).should == true
|
19
|
-
end
|
20
|
-
|
21
|
-
it "should NOT tags" do
|
22
|
-
Tags.matches?(['@one','@three'], [['@one', '~@two']]).should == true
|
23
|
-
Tags.matches?(['@one','@three'], [['~@one']]).should == false
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../../spec_helper'
|
2
|
-
require 'cucumber/formatter/console'
|
3
|
-
|
4
|
-
module Cucumber
|
5
|
-
module Formatter
|
6
|
-
describe Console do
|
7
|
-
include Console
|
8
|
-
|
9
|
-
before(:each) do
|
10
|
-
@io = mock('console output')
|
11
|
-
end
|
12
|
-
|
13
|
-
it "should not raise an error when there are no tags" do
|
14
|
-
@tag_occurrences = nil
|
15
|
-
|
16
|
-
lambda{print_tag_limit_warnings(:tag_names => {'@wip' => 2})}.should_not raise_error
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|