Sha256: 0ce94430d10dc5c998ca3300210e0c647bd325d81c91844956e0fbd72e1db5b8

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

require 'spec_helper'

class Klass
  include I18n::Backend::Base
end

describe I18n::Backend::Base, '#default' do
  let(:klass) { Klass.new }

  it "adds translations to missing translations to send to Locale" do
    with_configuration(:sending_environments => ['my_env'], :environment_name => 'my_env' ) do
      Localeapp.missing_translations.should_receive(:add).with(:en, 'foo', 'bar', :baz => 'bam')
      klass.default(:en, 'foo', 'bar', :baz => 'bam')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
localeapp-0.6.0 spec/localeapp/default_value_handler_spec.rb