Sha256: 3fa6e87edb93b525b9b9558ef7bad3781a26cd1355ca8459d851580e283aa507

Contents?: true

Size: 815 Bytes

Versions: 1

Compression:

Stored size: 815 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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
localeapp-0.0.7 spec/support/locale_app_integration_data.rb