Sha256: faed7ce94f4080bfca3c015bc5129e5dd202a8bc094e1e2b50ffd540d2fc2329

Contents?: true

Size: 815 Bytes

Versions: 19

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

19 entries across 19 versions & 1 rubygems

Version Path
localeapp-0.6.2 spec/support/localeapp_integration_data.rb
localeapp-0.6.1 spec/support/localeapp_integration_data.rb
localeapp-0.6.0 spec/support/localeapp_integration_data.rb
localeapp-0.5.2 spec/support/localeapp_integration_data.rb
localeapp-0.5.1 spec/support/localeapp_integration_data.rb
localeapp-0.5.0 spec/support/localeapp_integration_data.rb
localeapp-0.4.3 spec/support/localeapp_integration_data.rb
localeapp-0.4.2 spec/support/localeapp_integration_data.rb
localeapp-0.4.1 spec/support/localeapp_integration_data.rb
localeapp-0.4.0 spec/support/localeapp_integration_data.rb
localeapp-0.3.2 spec/support/localeapp_integration_data.rb
localeapp-0.3.1 spec/support/localeapp_integration_data.rb
localeapp-0.3.0 spec/support/localeapp_integration_data.rb
localeapp-0.2.0 spec/support/localeapp_integration_data.rb
localeapp-0.1.2 spec/support/localeapp_integration_data.rb
localeapp-0.1.1 spec/support/localeapp_integration_data.rb
localeapp-0.0.11 spec/support/localeapp_integration_data.rb
localeapp-0.0.10 spec/support/localeapp_integration_data.rb
localeapp-0.0.8 spec/support/localeapp_integration_data.rb