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

Version Path
localeapp-0.9.1 spec/support/localeapp_integration_data.rb
localeapp-0.9.0 spec/support/localeapp_integration_data.rb
localeapp-0.8.1 spec/support/localeapp_integration_data.rb
localeapp-0.8.0 spec/support/localeapp_integration_data.rb
localeapp-0.7.2 spec/support/localeapp_integration_data.rb
localeapp-0.7.1 spec/support/localeapp_integration_data.rb
localeapp-0.7.0 spec/support/localeapp_integration_data.rb
localeapp-0.6.14 spec/support/localeapp_integration_data.rb
localeapp-0.6.13 spec/support/localeapp_integration_data.rb
localeapp-0.6.12 spec/support/localeapp_integration_data.rb
localeapp-0.6.10 spec/support/localeapp_integration_data.rb
localeapp-0.6.9 spec/support/localeapp_integration_data.rb
localeapp-0.6.8 spec/support/localeapp_integration_data.rb
localeapp-0.6.7 spec/support/localeapp_integration_data.rb
localeapp-0.6.6 spec/support/localeapp_integration_data.rb
localeapp-0.6.5 spec/support/localeapp_integration_data.rb
localeapp-0.6.4 spec/support/localeapp_integration_data.rb
localeapp-0.6.3 spec/support/localeapp_integration_data.rb