cucumber 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +30 -4
- data/Rakefile +11 -8
- data/VERSION.yml +1 -1
- data/bin/cucumber +1 -2
- data/cucumber.gemspec +40 -38
- data/examples/i18n/da/features/{summering.feature → sammenlaegning.feature} +5 -5
- data/examples/i18n/da/features/step_definitons/{kalkulator_steps.rb → lommeregner_steps.rb} +3 -3
- data/examples/i18n/da/lib/{kalkulator.rb → lommeregner.rb} +2 -2
- data/examples/tickets/Rakefile +5 -1
- data/examples/tickets/features.html +138 -0
- data/examples/watir/Rakefile +4 -0
- data/examples/watir/features/{step_definitons → step_definitions}/search_steps.rb +0 -0
- data/examples/watir/features/support/screenshots.rb +45 -0
- data/features/announce.feature +122 -0
- data/features/html_formatter/a.html +1 -1
- data/features/step_definitions/cucumber_steps.rb +1 -1
- data/features/step_definitions/wire_steps.rb +14 -0
- data/features/support/env.rb +1 -1
- data/features/support/fake_wire_server.rb +63 -0
- data/features/tag_logic.feature +226 -0
- data/features/wire_protocol.feature +177 -0
- data/lib/cucumber/ast/examples.rb +4 -0
- data/lib/cucumber/ast/feature_element.rb +2 -1
- data/lib/cucumber/ast/scenario_outline.rb +4 -0
- data/lib/cucumber/ast/table.rb +13 -8
- data/lib/cucumber/ast/tags.rb +56 -12
- data/lib/cucumber/ast/tree_walker.rb +6 -0
- data/lib/cucumber/cli/main.rb +7 -5
- data/lib/cucumber/cli/options.rb +19 -10
- data/lib/cucumber/filter.rb +1 -2
- data/lib/cucumber/formatter/ansicolor.rb +17 -2
- data/lib/cucumber/formatter/console.rb +50 -32
- data/lib/cucumber/formatter/html.rb +21 -1
- data/lib/cucumber/formatter/junit.rb +8 -0
- data/lib/cucumber/formatter/pretty.rb +3 -0
- data/lib/cucumber/formatter/summary.rb +35 -0
- data/lib/cucumber/formatter/usage.rb +4 -4
- data/lib/cucumber/rails/active_record.rb +18 -10
- data/lib/cucumber/rb_support/rb_language.rb +7 -2
- data/lib/cucumber/rb_support/rb_world.rb +4 -0
- data/lib/cucumber/step_match.rb +3 -2
- data/lib/cucumber/step_mother.rb +6 -1
- data/lib/cucumber/wire_support/connection.rb +42 -0
- data/lib/cucumber/wire_support/request_handler.rb +19 -0
- data/lib/cucumber/wire_support/wire_exception.rb +10 -0
- data/lib/cucumber/wire_support/wire_language.rb +52 -0
- data/lib/cucumber/wire_support/wire_packet.rb +34 -0
- data/lib/cucumber/wire_support/wire_protocol.rb +64 -0
- data/lib/cucumber/wire_support/wire_step_definition.rb +21 -0
- data/rails_generators/cucumber/cucumber_generator.rb +7 -4
- data/rails_generators/cucumber/templates/cucumber_environment.rb +4 -4
- data/rails_generators/cucumber/templates/version_check.rb +6 -4
- data/spec/cucumber/ast/table_spec.rb +11 -1
- data/spec/cucumber/ast/tags_spec.rb +29 -0
- data/spec/cucumber/cli/options_spec.rb +8 -4
- data/spec/cucumber/formatter/junit_spec.rb +11 -0
- data/spec/cucumber/step_match_spec.rb +11 -0
- data/spec/cucumber/wire_support/wire_language_spec.rb +47 -0
- data/spec/cucumber/wire_support/wire_packet_spec.rb +26 -0
- metadata +38 -36
- data/examples/cs/.gitignore +0 -1
- data/examples/cs/README.textile +0 -1
- data/examples/cs/Rakefile +0 -12
- data/examples/cs/compile.bat +0 -1
- data/examples/cs/features/addition.feature +0 -16
- data/examples/cs/features/step_definitons/calculator_steps.rb +0 -19
- data/examples/cs/src/demo/Calculator.cs +0 -20
- data/examples/java/.gitignore +0 -1
- data/examples/java/README.textile +0 -18
- data/examples/java/build.xml +0 -33
- data/examples/java/features/hello.feature +0 -11
- data/examples/java/features/step_definitons/hello_steps.rb +0 -23
- data/examples/java/features/step_definitons/tree_steps.rb +0 -14
- data/examples/java/features/tree.feature +0 -9
- data/examples/java/src/.gitignore +0 -1
- data/examples/java/src/cucumber/demo/.gitignore +0 -1
- data/examples/java/src/cucumber/demo/Hello.java +0 -16
- data/examples/pure_java/README.textile +0 -5
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'spec/expectations' # so we can call .should
|
2
|
-
include_class 'cucumber.demo.Hello'
|
3
|
-
|
4
|
-
Given /my name is (\w+)/ do |name|
|
5
|
-
@hello = Hello.new # A java object
|
6
|
-
@name = name
|
7
|
-
end
|
8
|
-
|
9
|
-
When /I greet (.*)/ do |someone|
|
10
|
-
@greeting = @hello.greet(someone, @name)
|
11
|
-
end
|
12
|
-
|
13
|
-
Then /he should hear (.*)\./ do |message|
|
14
|
-
@greeting.should == message
|
15
|
-
end
|
16
|
-
|
17
|
-
Then /I should remember (\w+) as a friend/ do |name|
|
18
|
-
@hello.friend?(name).should == true
|
19
|
-
end
|
20
|
-
|
21
|
-
Then /I should get (\w+)'s phone number/ do |name| #'
|
22
|
-
@hello.getPhoneNumber(name).should_not == nil
|
23
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'spec/expectations'
|
2
|
-
include_class 'java.util.TreeSet'
|
3
|
-
|
4
|
-
Given /I have an empty set/ do
|
5
|
-
@set = TreeSet.new
|
6
|
-
end
|
7
|
-
|
8
|
-
When /I add (\w+)/ do |s|
|
9
|
-
@set.add(s)
|
10
|
-
end
|
11
|
-
|
12
|
-
Then /the contents should be (.*)/ do |s|
|
13
|
-
@set.to_a.join(" ").should == s
|
14
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
cucumber_demo.jar
|
@@ -1 +0,0 @@
|
|
1
|
-
*.class
|
@@ -1,16 +0,0 @@
|
|
1
|
-
package cucumber.demo;
|
2
|
-
|
3
|
-
public class Hello {
|
4
|
-
public String greet(String who, String from) {
|
5
|
-
return "Hi, " + who + ". I'm " + from;
|
6
|
-
}
|
7
|
-
|
8
|
-
public boolean isFriend(String who) {
|
9
|
-
return true;
|
10
|
-
}
|
11
|
-
|
12
|
-
public String getPhoneNumber(String who) {
|
13
|
-
throw new RuntimeException("NOPE");
|
14
|
-
//return "98219458";
|
15
|
-
}
|
16
|
-
}
|