spec/models/user_spec.rb in ar-translatable-0.0.1 vs spec/models/user_spec.rb in ar-translatable-0.0.2
- old
+ new
@@ -24,9 +24,10 @@
create :translated_word, :en, translatable: user
create :translated_word, :ja, translatable: user
end
it { expect(user.first_name(:en)).to eq "John" }
it { expect(user.first_name(:ja)).to eq "ジョン" }
+ it { expect(user.first_name(:fr)).to eq "John" }
context "default locale = :en" do
before { I18n.default_locale = :en }
after { I18n.default_locale = :en }
it { expect(user.first_name).to eq "John" }