features/step_definitions/locale_steps.rb in csl-1.0.0.pre12 vs features/step_definitions/locale_steps.rb in csl-1.0.0.pre13
- old
+ new
@@ -5,20 +5,20 @@
When /^I load the locale from the string$/ do |string|
@csl = CSL::Locale.load(string)
end
When /^I ordinalize the number (\d+)(?: using the (long) form(?: and (feminine|masculine) gender))?$/ do |num, form, gender|
- @ordinal = @locale.ordinalize(num, :form => form, :gender => gender)
+ @ordinal = @locale.ordinalize(num, :form => form, :'gender-form' => gender)
end
Then /^the ordinal should (?:be|equal) "([^"]*)"$/ do |ord|
@ordinal.should == ord
end
When /^I ordinalize these numbers:?$/ do |table|
@ordinals = table.rows.map do |row|
num, form, gender, number = *row
- @csl.ordinalize(num, :form => form, :gender => gender, :number => number)
+ @csl.ordinalize(num, :form => form, :'gender-form' => gender, :number => number)
end
end
Then /^the ordinals should (?:be|equal):?$/ do |table|
@ordinals.join(' ').should == table.rows.flatten.join(' ')
\ No newline at end of file