Sha256: c6913a294b5e8a2da3363822adfae1b9af8a683649abc5d148eacc17845d34d4

Contents?: true

Size: 317 Bytes

Versions: 11

Compression:

Stored size: 317 Bytes

Contents

Given /^a translation with key "(.*?)" and id "(.*?)" with values:$/ do |key, id, table|
  translation = @site.translations.build
  translation.id = 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

11 entries across 11 versions & 2 rubygems

Version Path
locomotivecms-3.0.0.rc3 features/step_definitions/translation_steps.rb
locomotivecms-3.0.0.rc2 features/step_definitions/translation_steps.rb
locomotivecms-3.0.0.rc1 features/step_definitions/translation_steps.rb
locomotivecms-3.0.0.pre.beta.1 features/step_definitions/translation_steps.rb
locomotivecms-3.0.0.pre.alpha.3 features/step_definitions/translation_steps.rb
locomotivecms-3.0.0.pre.alpha.2 features/step_definitions/translation_steps.rb
locomotivecms-3.0.0.pre.alpha features/step_definitions/translation_steps.rb
locomotive_cms-2.0.3 features/step_definitions/translation_steps.rb
locomotive_cms-2.0.2 features/step_definitions/translation_steps.rb
locomotive_cms-2.0.1 features/step_definitions/translation_steps.rb
locomotive_cms-2.0.0 features/step_definitions/translation_steps.rb