cukesalad 0.8.1 → 0.8.2
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/Examples/Calculator/cucumber.yml +4 -4
- data/Examples/Calculator/features/lib/roles/back_door/calculating_individual.rb +1 -1
- data/Examples/Calculator/features/lib/tasks/reference/calculations.rb +2 -3
- data/Examples/Calculator/lib/calculator.rb +5 -3
- data/Examples/Calculator/lib/web_calculator.rb +2 -2
- data/Gemfile.lock +22 -16
- data/Rakefile +3 -2
- data/cukesalad.gemspec +2 -1
- data/features/defining_tasks/define_a_task.feature +2 -4
- data/lib/cukesalad/version.rb +1 -1
- metadata +17 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
default: -p side_door
|
|
2
|
-
front_door: --exclude features/lib/roles/back_door --exclude features/lib/roles/side_door
|
|
3
|
-
side_door: --exclude features/lib/roles/back_door --exclude features/lib/roles/front_door
|
|
4
|
-
back_door: --exclude features/lib/roles/front_door --exclude features/lib/roles/side_door
|
|
1
|
+
default: -p side_door -s
|
|
2
|
+
front_door: --exclude features/lib/roles/back_door --exclude features/lib/roles/side_door -s
|
|
3
|
+
side_door: --exclude features/lib/roles/back_door --exclude features/lib/roles/front_door -s
|
|
4
|
+
back_door: --exclude features/lib/roles/front_door --exclude features/lib/roles/side_door -s
|
|
5
5
|
autotest: --color
|
|
6
6
|
autotest-all: --color
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
module Calculations
|
|
3
2
|
|
|
4
3
|
def follow_the_steps_for sum
|
|
@@ -6,10 +5,10 @@ module Calculations
|
|
|
6
5
|
end
|
|
7
6
|
|
|
8
7
|
def enter_numbers_and_operators_for sum
|
|
9
|
-
operators = Calculator::
|
|
8
|
+
operators = Calculator::OPERATIONS.invert
|
|
10
9
|
sum.each do | token |
|
|
11
10
|
enter token.to_i if token =~ /\d+/
|
|
12
|
-
press operators[token]
|
|
11
|
+
press operators[token] if operators.include? token
|
|
13
12
|
end
|
|
14
13
|
end
|
|
15
14
|
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
cukesalad (0.8.
|
|
4
|
+
cukesalad (0.8.2)
|
|
5
5
|
aruba (= 0.4.3)
|
|
6
|
-
cucumber (= 1.
|
|
6
|
+
cucumber (= 1.1.9)
|
|
7
7
|
rspec (>= 2.5.0)
|
|
8
8
|
|
|
9
9
|
GEM
|
|
@@ -19,39 +19,44 @@ GEM
|
|
|
19
19
|
bcat (0.6.2)
|
|
20
20
|
rack (~> 1.0)
|
|
21
21
|
builder (3.0.0)
|
|
22
|
-
childprocess (0.
|
|
22
|
+
childprocess (0.3.1)
|
|
23
23
|
ffi (~> 1.0.6)
|
|
24
|
-
cucumber (1.
|
|
24
|
+
cucumber (1.1.9)
|
|
25
25
|
builder (>= 2.1.2)
|
|
26
26
|
diff-lcs (>= 1.1.2)
|
|
27
|
-
gherkin (~> 2.
|
|
27
|
+
gherkin (~> 2.9.0)
|
|
28
28
|
json (>= 1.4.6)
|
|
29
29
|
term-ansicolor (>= 1.0.6)
|
|
30
30
|
diff-lcs (1.1.3)
|
|
31
|
-
ffi (1.0.
|
|
32
|
-
|
|
31
|
+
ffi (1.0.11)
|
|
32
|
+
ffi (1.0.11-java)
|
|
33
|
+
gherkin (2.9.0)
|
|
34
|
+
json (>= 1.4.6)
|
|
35
|
+
gherkin (2.9.0-java)
|
|
33
36
|
json (>= 1.4.6)
|
|
34
37
|
json (1.4.6)
|
|
35
38
|
json (1.4.6-java)
|
|
36
39
|
mime-types (1.16)
|
|
37
|
-
rack (1.
|
|
40
|
+
rack (1.4.1)
|
|
38
41
|
rake (0.9.2)
|
|
39
42
|
rdiscount (1.6.8)
|
|
43
|
+
rdoc (3.12)
|
|
44
|
+
json (~> 1.4)
|
|
40
45
|
relish (0.3.0)
|
|
41
46
|
archive-tar-minitar (~> 0.5.2)
|
|
42
47
|
json (~> 1.4.6)
|
|
43
48
|
rest-client (~> 1.6.1)
|
|
44
49
|
rest-client (1.6.7)
|
|
45
50
|
mime-types (>= 1.16)
|
|
46
|
-
rspec (2.
|
|
47
|
-
rspec-core (~> 2.
|
|
48
|
-
rspec-expectations (~> 2.
|
|
49
|
-
rspec-mocks (~> 2.
|
|
50
|
-
rspec-core (2.
|
|
51
|
-
rspec-expectations (2.
|
|
51
|
+
rspec (2.8.0)
|
|
52
|
+
rspec-core (~> 2.8.0)
|
|
53
|
+
rspec-expectations (~> 2.8.0)
|
|
54
|
+
rspec-mocks (~> 2.8.0)
|
|
55
|
+
rspec-core (2.8.0)
|
|
56
|
+
rspec-expectations (2.8.0)
|
|
52
57
|
diff-lcs (~> 1.1.2)
|
|
53
|
-
rspec-mocks (2.
|
|
54
|
-
term-ansicolor (1.0.
|
|
58
|
+
rspec-mocks (2.8.0)
|
|
59
|
+
term-ansicolor (1.0.7)
|
|
55
60
|
|
|
56
61
|
PLATFORMS
|
|
57
62
|
java
|
|
@@ -61,4 +66,5 @@ DEPENDENCIES
|
|
|
61
66
|
bundler (~> 1.0.0)
|
|
62
67
|
cukesalad!
|
|
63
68
|
rake (~> 0.9.2)
|
|
69
|
+
rdoc (>= 2.4.0)
|
|
64
70
|
relish (= 0.3.0)
|
data/Rakefile
CHANGED
|
@@ -7,6 +7,7 @@ rescue Bundler::BundlerError => e
|
|
|
7
7
|
$stderr.puts "Run `bundle install` to install missing gems"
|
|
8
8
|
exit e.status_code
|
|
9
9
|
end
|
|
10
|
+
require 'rake/dsl_definition'
|
|
10
11
|
require 'rake'
|
|
11
12
|
Bundler::GemHelper.install_tasks
|
|
12
13
|
|
|
@@ -25,8 +26,8 @@ end
|
|
|
25
26
|
|
|
26
27
|
task :default => [:spec, :cucumber]
|
|
27
28
|
|
|
28
|
-
require '
|
|
29
|
-
|
|
29
|
+
require 'rdoc/task'
|
|
30
|
+
RDoc::Task.new do |rdoc|
|
|
30
31
|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
|
31
32
|
|
|
32
33
|
rdoc.rdoc_dir = 'rdoc'
|
data/cukesalad.gemspec
CHANGED
|
@@ -25,11 +25,12 @@ Gem::Specification.new do |s|
|
|
|
25
25
|
s.default_executable = "cukesalad"
|
|
26
26
|
s.require_paths = ["lib"]
|
|
27
27
|
|
|
28
|
-
s.add_runtime_dependency "cucumber", "1.
|
|
28
|
+
s.add_runtime_dependency "cucumber", "1.1.9"
|
|
29
29
|
s.add_runtime_dependency "rspec", ">=2.5.0"
|
|
30
30
|
s.add_runtime_dependency "aruba", "0.4.3"
|
|
31
31
|
|
|
32
32
|
s.add_development_dependency "bundler", "~> 1.0.0"
|
|
33
33
|
s.add_development_dependency "rake", "~> 0.9.2"
|
|
34
34
|
s.add_development_dependency "relish", "= 0.3.0"
|
|
35
|
+
s.add_development_dependency "rdoc", ">= 2.4.0"
|
|
35
36
|
end
|
|
@@ -3,7 +3,6 @@ Feature: Define a Task
|
|
|
3
3
|
You want to describe a task
|
|
4
4
|
So that your steps that use that role are executed
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
Background:
|
|
8
7
|
Given you are a Step Free Cuker
|
|
9
8
|
And you have created a role, named 'NewCustomer'
|
|
@@ -53,8 +52,8 @@ Feature: Define a Task
|
|
|
53
52
|
Then you should see it has 'passed'
|
|
54
53
|
|
|
55
54
|
Scenario: Tasks can contain numbers
|
|
56
|
-
Given you have created a task
|
|
57
|
-
When you run a scenario
|
|
55
|
+
Given you have created a task, called 'do something for 123Company'
|
|
56
|
+
When you run a scenario, containing
|
|
58
57
|
"""
|
|
59
58
|
Given I am a New Customer
|
|
60
59
|
When I do something for 123Company
|
|
@@ -63,7 +62,6 @@ Feature: Define a Task
|
|
|
63
62
|
|
|
64
63
|
Scenario Outline: There are all sorts of ways you can say things
|
|
65
64
|
Given you have created a task, called 'do something'
|
|
66
|
-
And you have created a task, called 'done something'
|
|
67
65
|
When you run a scenario: containing
|
|
68
66
|
"""
|
|
69
67
|
Given I am a New Customer
|
data/lib/cukesalad/version.rb
CHANGED
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: cukesalad
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.8.
|
|
5
|
+
version: 0.8.2
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- RiverGlide
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date:
|
|
13
|
+
date: 2012-03-07 00:00:00 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: cucumber
|
|
@@ -19,7 +19,7 @@ dependencies:
|
|
|
19
19
|
requirements:
|
|
20
20
|
- - "="
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: 1.
|
|
22
|
+
version: 1.1.9
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: *id001
|
|
@@ -78,6 +78,17 @@ dependencies:
|
|
|
78
78
|
type: :development
|
|
79
79
|
prerelease: false
|
|
80
80
|
version_requirements: *id006
|
|
81
|
+
- !ruby/object:Gem::Dependency
|
|
82
|
+
name: rdoc
|
|
83
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
|
84
|
+
none: false
|
|
85
|
+
requirements:
|
|
86
|
+
- - ">="
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: 2.4.0
|
|
89
|
+
type: :development
|
|
90
|
+
prerelease: false
|
|
91
|
+
version_requirements: *id007
|
|
81
92
|
description: "CukeSalad allows you to focus on the tasks at hand - expressing examples, the roles involved in those examples and the tasks that those roles need to perform with the product under development.\n New in this version:\n - Single or double quotes can be used for parameters\n - Single or double quotes can be used for expectations\n - You can initialise the actor by having a role_preparation method in your role\n "
|
|
82
93
|
email:
|
|
83
94
|
- talktous@riverglide.com
|
|
@@ -186,7 +197,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
186
197
|
requirements:
|
|
187
198
|
- - ">="
|
|
188
199
|
- !ruby/object:Gem::Version
|
|
189
|
-
hash:
|
|
200
|
+
hash: 303152584528065187
|
|
190
201
|
segments:
|
|
191
202
|
- 0
|
|
192
203
|
version: "0"
|
|
@@ -195,14 +206,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
195
206
|
requirements:
|
|
196
207
|
- - ">="
|
|
197
208
|
- !ruby/object:Gem::Version
|
|
198
|
-
hash:
|
|
209
|
+
hash: 303152584528065187
|
|
199
210
|
segments:
|
|
200
211
|
- 0
|
|
201
212
|
version: "0"
|
|
202
213
|
requirements: []
|
|
203
214
|
|
|
204
215
|
rubyforge_project:
|
|
205
|
-
rubygems_version: 1.8.
|
|
216
|
+
rubygems_version: 1.8.8
|
|
206
217
|
signing_key:
|
|
207
218
|
specification_version: 3
|
|
208
219
|
summary: Friction Free BDD/ATDD with cucumber
|