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