Sha256: e35fbc5502c72129bbc2d3c84d0d9b31d082f7fa9f2822e472dd620ddeb5139a
Contents?: true
Size: 1018 Bytes
Versions: 38
Compression:
Stored size: 1018 Bytes
Contents
# This module is the source for all data that simulates what the real app would return. # It's included in the specs and cucumber tests, so if our format changes we # should only have to change here module LocaleappIntegrationData def valid_project_data { 'name' => "Test Project", 'default_locale' => { 'name' => "English", 'code' => "en" } } end def valid_translation_data { 'translations' => { 'en' => { 'foo' => { 'monkey' => 'hello', 'night' => 'night' } }, 'es' => { 'foo' => { 'monkey' => 'hola', 'night' => 'noche' } }, }, 'deleted' => [ 'foo.delete_me', 'bar.delete_me_too', 'hah.imnotreallyhere' ], 'locales' => %w{en es} } end def valid_export_data { 'en' => { 'foo' => {'monkey' => 'hello', 'night' => 'night'} }, 'es' => { 'foo' => {'monkey' => 'hola', 'night' => 'noche'} } } end end
Version data entries
38 entries across 38 versions & 1 rubygems