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 CHANGED
@@ -1,5 +1,8 @@
1
1
  == 0.3.4 (In Git)
2
2
 
3
+ === Bugfixes
4
+ * Problem with multiple terms in languages.yml (#321 Aslak Hellesøy)
5
+
3
6
  === New features
4
7
  * Support for Catalan (Francesc Esplugas)
5
8
 
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
- Given /que eu digitei (\d+) na calculadora/ do |n|
10
+ Dado /que eu digitei (\d+) na calculadora/ do |n|
15
11
  @calc.push n.to_i
16
12
  end
17
13
 
18
- When 'eu aperto o botão de soma' do
14
+ Quando 'eu aperto o botão de soma' do
19
15
  @result = @calc.soma
20
16
  end
21
17
 
22
- Then /o resultado na calculadora deve ser (\d*)/ do |result|
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.
@@ -172,8 +172,8 @@
172
172
  examples: Exemples
173
173
  given: Donat
174
174
  when: Quan
175
- then: aleshores
176
- and: i
175
+ then: Aleshores
176
+ and: I
177
177
  but: Però
178
178
  space_after_keyword: true
179
179
  "et":
@@ -3,7 +3,7 @@ module Cucumber #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
5
  TINY = 3
6
- PATCH = 1 # Set to nil for official release
6
+ PATCH = 2 # Set to nil for official release
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
9
9
  end
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.1
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-10 00:00:00 -07:00
12
+ date: 2009-05-11 00:00:00 -07:00
13
13
  default_executable: cucumber
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency