Sha256: 3cdad308e74a8b710ce082914761c18ae9bcc9483a0bdf316cd9643b203b64e5

Contents?: true

Size: 656 Bytes

Versions: 1

Compression:

Stored size: 656 Bytes

Contents

Given /^I have translated "([^\"]*)" to "([^\"]*)" in "([^\"]*)" locale$/ do |key, translation, locale|
  Translation.create!(:key => key, :translation => translation, :locale => locale)
end

Given /^I have tranlated "([^\"]*)" to "([^\"]*)" with scope "([^\"]*)" in "([^\"]*)" locale$/ do |key, translation, scope, locale|
  Translation.create!(:key => key, :translation => translation, :locale => locale, :scope => scope)
end

Given /^I have relocalized "([^\"]*)" from "([^\"]*)" to "([^\"]*)"$/ do |key, old_locale, new_locale|
  Translation.first(:conditions => {:key => key, :locale => old_locale}).update_attribute('locale', new_locale)
end








Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trendi18n-0.9.3 spec/test_application/features/step_definitions/translations_steps.rb