Commit 7951429445b67949177d1b5193712f1f9444db8c

Authored by Cyril Mougel
1 parent 9698c084
Exists in master and in 1 other branch production

fix spec/model/commment with fabrication gem

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
spec/models/comment_spec.rb
@@ -3,7 +3,7 @@ require 'spec_helper' @@ -3,7 +3,7 @@ require 'spec_helper'
3 describe Comment do 3 describe Comment do
4 context 'validations' do 4 context 'validations' do
5 it 'should require a body' do 5 it 'should require a body' do
6 - comment = Factory.build(:comment, :body => nil) 6 + comment = Fabricate.build(:comment, :body => nil)
7 comment.should_not be_valid 7 comment.should_not be_valid
8 comment.errors[:body].should include("can't be blank") 8 comment.errors[:body].should include("can't be blank")
9 end 9 end