Sha256: 96439b5d1161cd46bfe6f453b9f49b53d1aab2bb485a52bbc83f3dde5aea8fca

Contents?: true

Size: 324 Bytes

Versions: 26

Compression:

Stored size: 324 Bytes

Contents

Given /^a translation with key "(.*?)" and id "(.*?)" with values:$/ do |key, id, table|
  translation = @site.translations.build
  translation.id = Moped::BSON::ObjectId(id)
  translation.key = key
  translation.values = table.raw.inject({}) { |memo,values| memo.merge(values.first => values.last) }
  translation.save!
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
locomotive_cms-2.5.7 features/step_definitions/translation_steps.rb
locomotive_cms-2.5.6 features/step_definitions/translation_steps.rb
locomotive_cms-2.5.6.rc2 features/step_definitions/translation_steps.rb
locomotive_cms-2.5.6.rc1 features/step_definitions/translation_steps.rb
locomotive_cms-2.5.5 features/step_definitions/translation_steps.rb
locomotive_cms-2.5.4 features/step_definitions/translation_steps.rb
locomotive_cms-2.5.3 features/step_definitions/translation_steps.rb
locomotive_cms-2.5.2 features/step_definitions/translation_steps.rb
locomotive_cms-2.5.1 features/step_definitions/translation_steps.rb
locomotive_cms-2.5.0 features/step_definitions/translation_steps.rb
locomotive_cms-2.5.0.rc3 features/step_definitions/translation_steps.rb
locomotive_cms-2.5.0.rc2 features/step_definitions/translation_steps.rb
locomotive_cms-2.5.0.rc1 features/step_definitions/translation_steps.rb
locomotive_cms-2.4.1 features/step_definitions/translation_steps.rb
locomotive_cms-2.4.0 features/step_definitions/translation_steps.rb
locomotive_cms-2.3.1 features/step_definitions/translation_steps.rb
locomotive_cms-2.3.0 features/step_definitions/translation_steps.rb
locomotive_cms-2.2.3 features/step_definitions/translation_steps.rb
locomotive_cms-2.2.2 features/step_definitions/translation_steps.rb
locomotive_cms-2.2.1 features/step_definitions/translation_steps.rb