Commit 7951429445b67949177d1b5193712f1f9444db8c
1 parent
9698c084
Exists in
master
and in
1 other branch
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 | 3 | describe Comment do |
4 | 4 | context 'validations' do |
5 | 5 | it 'should require a body' do |
6 | - comment = Factory.build(:comment, :body => nil) | |
6 | + comment = Fabricate.build(:comment, :body => nil) | |
7 | 7 | comment.should_not be_valid |
8 | 8 | comment.errors[:body].should include("can't be blank") |
9 | 9 | end | ... | ... |