diff --git a/spec/models/comment_spec.rb b/spec/models/comment_spec.rb index 0103204..9709019 100644 --- a/spec/models/comment_spec.rb +++ b/spec/models/comment_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' describe Comment do context 'validations' do it 'should require a body' do - comment = Factory.build(:comment, :body => nil) + comment = Fabricate.build(:comment, :body => nil) comment.should_not be_valid comment.errors[:body].should include("can't be blank") end -- libgit2 0.21.2