Sha256: 8b078daa976ce1212cef566d9f996273f08684266f97af38e932ec12bc373c9a
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
#Scenario: Simple example and simple translation # Given a source file "translations/en.yaml" with: # """ # hello: Hello World! # """ # When I have the locale setted as "en" # And I write "hello" in the translation engine # Then I should see "Hello World!" Given /^a source file "(.*?)" with:$/ do |file, content| Fast.file.write file, content end When /^I have the locale setted as "(.*?)"$/ do |locale| G11n::Translator.instance.locale = locale.to_sym end And /^I write "(.*?)" in the translation engine$/ do |identifier| @result = eval "G11n::Translator.instance.translate.#{identifier}" end Then /^I should see "(.*?)"$/ do |text| @result.should == text end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
g11n-0.0.4 | features/stepdefs/get_a_translation/simple_example_and_simple_translation.rb |