Sha256: 4156ff420fd90257357fa8a93dc7081c862fa4b4e84de3c5019cbbbbd23849e0
Contents?: true
Size: 743 Bytes
Versions: 2
Compression:
Stored size: 743 Bytes
Contents
require 'spec_helper' require 'trip_advisor/translation' describe TripAdvisor::Translation do it "strips leading and trailing whitespace from key attribute" do translation = TripAdvisor::Translation.new(key: " the key ") translation.key.should == 'the key' end end describe TripAdvisor::Translation::Localization do it "strips leading and trailing whitespace from string attribute" do translation = TripAdvisor::Translation::Localization.new(string: " the value ") translation.string.should == 'the value' end it "handles TripAdvisor locale substitutions" do translation = TripAdvisor::Translation::Localization.new(locale_identifier: "no") translation.locale_identifier.should == 'nb' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trip_advisor-0.0.21 | spec/translation_spec.rb |
trip_advisor-0.0.15 | spec/translation_spec.rb |