Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Split spec in two steps
Browse files Browse the repository at this point in the history
  • Loading branch information
y8 committed Aug 17, 2011
1 parent ef0ab97 commit ee5d11d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spec/integration/mongoid/i18n_spec.rb
Expand Up @@ -370,12 +370,17 @@ class SubEntry
describe Mongoid::I18n, "create_accessors" do
before do
I18n.locale = :en
@entry = Entry.new(:weight => 70)
@entry = Entry.new
end

it "should not affect other fields " do
it "should not affect other fields accessors" do
@entry.weight.should == 60

@entry.weight = 70
@entry.weight.should == 70
end

it "should not define own methods on for fields" do
@entry.should_not respond_to :weight_translations
end
end

0 comments on commit ee5d11d

Please sign in to comment.