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