aslakhellesoy-cucumber 0.3.3.1 → 0.3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/Manifest.txt +1 -0
- data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +3 -7
- data/lib/cucumber.rb +2 -2
- data/lib/cucumber/languages.yml +2 -2
- data/lib/cucumber/version.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -114,6 +114,7 @@ examples/i18n/no/lib/kalkulator.rb
|
|
114
114
|
examples/i18n/pt/Rakefile
|
115
115
|
examples/i18n/pt/features/adicao.feature
|
116
116
|
examples/i18n/pt/features/step_definitions/calculadora_steps.rb
|
117
|
+
examples/i18n/pt/features/support/env.rb
|
117
118
|
examples/i18n/pt/lib/calculadora.rb
|
118
119
|
examples/i18n/ro/Rakefile
|
119
120
|
examples/i18n/ro/features/step_definitons/calculator_steps.rb
|
@@ -1,8 +1,4 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
require 'spec/expectations'
|
3
|
-
$:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
|
4
|
-
require 'cucumber/formatter/unicode'
|
5
|
-
require 'calculadora'
|
6
2
|
|
7
3
|
Before do
|
8
4
|
@calc = Calculadora.new
|
@@ -11,14 +7,14 @@ end
|
|
11
7
|
After do
|
12
8
|
end
|
13
9
|
|
14
|
-
|
10
|
+
Dado /que eu digitei (\d+) na calculadora/ do |n|
|
15
11
|
@calc.push n.to_i
|
16
12
|
end
|
17
13
|
|
18
|
-
|
14
|
+
Quando 'eu aperto o botão de soma' do
|
19
15
|
@result = @calc.soma
|
20
16
|
end
|
21
17
|
|
22
|
-
|
18
|
+
Então /o resultado na calculadora deve ser (\d*)/ do |result|
|
23
19
|
@result.should == result.to_i
|
24
20
|
end
|
data/lib/cucumber.rb
CHANGED
@@ -40,8 +40,8 @@ module Cucumber
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def alias_step_definitions(lang) #:nodoc:
|
43
|
-
keywords = %w{given when then and but}.map{|keyword| keyword_hash(lang)[keyword]}
|
44
|
-
alias_steps(keywords)
|
43
|
+
keywords = %w{given when then and but}.map{|keyword| keyword_hash(lang)[keyword].split('|')}
|
44
|
+
alias_steps(keywords.flatten)
|
45
45
|
end
|
46
46
|
|
47
47
|
# Sets up additional method aliases for Given, When and Then.
|
data/lib/cucumber/languages.yml
CHANGED
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.3.3.
|
4
|
+
version: 0.3.3.2
|
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: 2009-05-
|
12
|
+
date: 2009-05-11 00:00:00 -07:00
|
13
13
|
default_executable: cucumber
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|