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-3.3.0 spec/support/localeapp_integration_data.rb
localeapp-3.2.0 spec/support/localeapp_integration_data.rb
localeapp-3.1.3 spec/support/localeapp_integration_data.rb
localeapp-3.1.2 spec/support/localeapp_integration_data.rb
localeapp-3.1.1 spec/support/localeapp_integration_data.rb
localeapp-3.1.0 spec/support/localeapp_integration_data.rb
localeapp-3.0.1 spec/support/localeapp_integration_data.rb
localeapp-3.0.0 spec/support/localeapp_integration_data.rb
localeapp-2.5.0 spec/support/localeapp_integration_data.rb
localeapp-2.4.0 spec/support/localeapp_integration_data.rb
localeapp-2.3.0 spec/support/localeapp_integration_data.rb
localeapp-2.2.0 spec/support/localeapp_integration_data.rb
localeapp-2.1.1 spec/support/localeapp_integration_data.rb
localeapp-2.1.0 spec/support/localeapp_integration_data.rb
localeapp-2.0.0 spec/support/localeapp_integration_data.rb
localeapp-1.0.2 spec/support/localeapp_integration_data.rb
localeapp-1.0.1 spec/support/localeapp_integration_data.rb
localeapp-1.0.0 spec/support/localeapp_integration_data.rb
localeapp-0.9.3 spec/support/localeapp_integration_data.rb
localeapp-0.9.2 spec/support/localeapp_integration_data.rb