aslakhellesoy-cucumber 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +19 -2
- data/Manifest.txt +4 -5
- data/examples/cs/README.textile +1 -22
- data/examples/cs/Rakefile +1 -1
- data/examples/cs/compile.bat +1 -0
- data/examples/cs/features/addition.feature +17 -0
- data/examples/cs/features/step_definitons/calculator_steps.rb +23 -0
- data/examples/cs/src/demo/Calculator.cs +20 -0
- data/examples/i18n/en/features/step_definitons/calculator_steps.rb +0 -5
- data/lib/autotest/cucumber_mixin.rb +1 -1
- data/lib/cucumber/platform.rb +0 -4
- data/lib/cucumber/tree/step.rb +8 -0
- data/lib/cucumber/treetop_parser/feature_en-lol.rb +1591 -0
- data/lib/cucumber/version.rb +1 -1
- metadata +7 -7
- data/examples/cs/features/hello.feature +0 -11
- data/examples/cs/features/step_definitons/hello_steps.rb +0 -25
- data/examples/cs/features/step_definitons/tree_steps.rb +0 -14
- data/examples/cs/features/tree.feature +0 -9
- data/examples/cs/src/Hello.cs +0 -18
data/lib/cucumber/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aslakhellesoy-cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Aslak Helles\xC3\xB8y"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-12-
|
12
|
+
date: 2008-12-04 00:00:00 -08:00
|
13
13
|
default_executable: cucumber
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -78,11 +78,10 @@ files:
|
|
78
78
|
- examples/calculator_ruby_features/features/step_definitons/calculator_steps.rb
|
79
79
|
- examples/cs/README.textile
|
80
80
|
- examples/cs/Rakefile
|
81
|
-
- examples/cs/
|
82
|
-
- examples/cs/features/
|
83
|
-
- examples/cs/features/step_definitons/
|
84
|
-
- examples/cs/
|
85
|
-
- examples/cs/src/Hello.cs
|
81
|
+
- examples/cs/compile.bat
|
82
|
+
- examples/cs/features/addition.feature
|
83
|
+
- examples/cs/features/step_definitons/calculator_steps.rb
|
84
|
+
- examples/cs/src/demo/Calculator.cs
|
86
85
|
- examples/dos_line_endings/Rakefile
|
87
86
|
- examples/dos_line_endings/features/dos_line_endings.feature
|
88
87
|
- examples/i18n/README.textile
|
@@ -231,6 +230,7 @@ files:
|
|
231
230
|
- lib/cucumber/treetop_parser/feature_cy.rb
|
232
231
|
- lib/cucumber/treetop_parser/feature_da.rb
|
233
232
|
- lib/cucumber/treetop_parser/feature_de.rb
|
233
|
+
- lib/cucumber/treetop_parser/feature_en-lol.rb
|
234
234
|
- lib/cucumber/treetop_parser/feature_en-tx.rb
|
235
235
|
- lib/cucumber/treetop_parser/feature_en.rb
|
236
236
|
- lib/cucumber/treetop_parser/feature_es.rb
|
@@ -1,11 +0,0 @@
|
|
1
|
-
Feature: Hello
|
2
|
-
In order to have more friends
|
3
|
-
I want to say hello
|
4
|
-
|
5
|
-
Scenario: Personal greeting
|
6
|
-
Given my name is Aslak
|
7
|
-
When I greet David
|
8
|
-
Then he should hear Hi, David. I'm Aslak.
|
9
|
-
And I should remember David as a friend
|
10
|
-
And I should get David's phone number
|
11
|
-
|
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'spec' # so we can call .should
|
2
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../src') # so the jar is found
|
3
|
-
require 'dotnet'
|
4
|
-
loadLibrary 'Cucumber.Demo'
|
5
|
-
|
6
|
-
Given /my name is (\w+)/ do |name|
|
7
|
-
@hello = Hello.new # A .net object
|
8
|
-
@name = name
|
9
|
-
end
|
10
|
-
|
11
|
-
When /I greet (.*)/ do |someone|
|
12
|
-
@greeting = @hello.greet(someone, @name)
|
13
|
-
end
|
14
|
-
|
15
|
-
Then /he should hear (.*)\./ do |message|
|
16
|
-
@greeting.should == message
|
17
|
-
end
|
18
|
-
|
19
|
-
Then /I should remember (\w+) as a friend/ do |name|
|
20
|
-
@hello.isFriend(name).should == true
|
21
|
-
end
|
22
|
-
|
23
|
-
Then /I should get (\w+)'s phone number/ do |name|
|
24
|
-
@hello.getPhoneNumber(name).should_not == nil
|
25
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'spec'
|
2
|
-
require 'dotnet'
|
3
|
-
|
4
|
-
Given /I have an empty set/ do
|
5
|
-
@set = System.Collections.ArrayList.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
|
data/examples/cs/src/Hello.cs
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
using System;
|
2
|
-
|
3
|
-
namespace Cucumber.Demo {
|
4
|
-
public class Hello {
|
5
|
-
public string Greet(string who, string from) {
|
6
|
-
return "Hi, " + who + ". I'm " + from;
|
7
|
-
}
|
8
|
-
|
9
|
-
public bool IsFriend(string who) {
|
10
|
-
return true;
|
11
|
-
}
|
12
|
-
|
13
|
-
public string GetPhoneNumber(string who) {
|
14
|
-
return "99999";
|
15
|
-
//throw new Exception("My phone is secret!");
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|