Sha256: 21fe804b7d734f3806be8c01f5b0a58a6739797541ed3dc7559fef02514e16f6

Contents?: true

Size: 507 Bytes

Versions: 6

Compression:

Stored size: 507 Bytes

Contents

require 'babelyoda/localization_value'

describe "localization value" do
  it "can be created" do
    value = Babelyoda::LocalizationValue.new(:en, "Value 1")
    value.language.should == :en
    value.text.should == "Value 1"
  end
  
  it "should merge non-plural values" do
    value1 = Babelyoda::LocalizationValue.new(:en, "Value 1")
    value2 = Babelyoda::LocalizationValue.new(:en, "Value 2")
    value1.merge!(value2)
    value1.language.should == :en
    value1.text.should == "Value 2"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
babelyoda-2.1.5 spec/lib/babelyoda/localization_value_spec.rb
babelyoda-2.1.4 spec/lib/babelyoda/localization_value_spec.rb
babelyoda-2.1.3 spec/lib/babelyoda/localization_value_spec.rb
babelyoda-2.1.2 spec/lib/babelyoda/localization_value_spec.rb
babelyoda-2.1.1 spec/lib/babelyoda/localization_value_spec.rb
babelyoda-2.1.0 spec/lib/babelyoda/localization_value_spec.rb