[rspec-users] [cucumber] more than one keyword translation

Oliver Barnes oli.azevedo.barnes at gmail.com
Mon Apr 6 18:39:10 EDT 2009


Hello,

I'm trying to get Given in Portuguese to have two translations, "Dado"
and "Dada" (variations on gender), so that the features are more
readable.

so I have this in my languages.yml:

given: Dado|Dada (found this syntax in a comment within the cucumber codebase)

but when I run

cucumber -l pt -f progress features/

the second option isn't read:

./features/step_definitions/clipping/gerenciamento_de_clippings_steps.rb:1:
undefined method `Dado' for #<Object:0x389a0> (NoMethodError)
	from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
	from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`polyglot_original_require'
	from /Library/Ruby/Gems/1.8/gems/polyglot-0.2.5/lib/polyglot.rb:54:in `require'
	from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:158:in
`require'
	from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/../lib/cucumber/cli/main.rb:76:in
`require_files'
	from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/../lib/cucumber/cli/main.rb:74:in
`each'
	from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/../lib/cucumber/cli/main.rb:74:in
`require_files'
	from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/../lib/cucumber/cli/main.rb:34:in
`execute!'
	from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/../lib/cucumber/cli/main.rb:20:in
`execute'
	from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/cucumber:6
	from /usr/bin/cucumber:19:in `load'
	from /usr/bin/cucumber:19

what's the correct way to do this?

- Oliver


More information about the rspec-users mailing list