spec/integration/mongoid/i18n_spec.rb in mongoid_i18n-0.1.3 vs spec/integration/mongoid/i18n_spec.rb in mongoid_i18n-0.1.4
- old
+ new
@@ -12,9 +12,19 @@
describe Mongoid::I18n, "localized_field" do
before do
I18n.locale = :en
end
+ describe "without an assigned value" do
+ before do
+ @entry = Entry.new
+ end
+
+ it "should return blank" do
+ @entry.title.should be_blank
+ end
+ end
+
describe "with an assigned value" do
before do
@entry = Entry.new(:title => 'Title')
end
\ No newline at end of file