Commit e3d42a62204a65a98b4e1398855e29c807183de2

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

fix spec/mode/err_spec with fabrication gem

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
spec/models/err_spec.rb
... ... @@ -4,13 +4,13 @@ describe Err do
4 4  
5 5 context 'validations' do
6 6 it 'requires a klass' do
7   - err = Factory.build(:err, :klass => nil)
  7 + err = Fabricate.build(:err, :klass => nil)
8 8 err.should_not be_valid
9 9 err.errors[:klass].should include("can't be blank")
10 10 end
11 11  
12 12 it 'requires an environment' do
13   - err = Factory.build(:err, :environment => nil)
  13 + err = Fabricate.build(:err, :environment => nil)
14 14 err.should_not be_valid
15 15 err.errors[:environment].should include("can't be blank")
16 16 end
... ...