specs errors according to rails3

pull/6827/head
Jens Ulferts 12 years ago
parent a200b7455d
commit bc357e453f
  1. 8
      spec/models/labor_budget_item_spec.rb

@ -100,7 +100,7 @@ describe LaborBudgetItem do
it "should not be valid" do
item.should_not be_valid
item.errors[:hours].should == I18n.t('activerecord.errors.messages.not_a_number')
item.errors[:hours].should == [I18n.t('activerecord.errors.messages.not_a_number')]
end
end
@ -111,7 +111,7 @@ describe LaborBudgetItem do
it "should not be valid" do
item.should_not be_valid
item.errors[:hours].should == I18n.t('activerecord.errors.messages.not_a_number')
item.errors[:hours].should == [I18n.t('activerecord.errors.messages.not_a_number')]
end
end
@ -122,7 +122,7 @@ describe LaborBudgetItem do
it "should not be valid" do
item.should_not be_valid
item.errors[:cost_object].should == I18n.t('activerecord.errors.messages.blank')
item.errors[:cost_object].should == [I18n.t('activerecord.errors.messages.blank')]
end
end
@ -133,7 +133,7 @@ describe LaborBudgetItem do
it "should not be valid" do
item.should_not be_valid
item.errors[:user].should == I18n.t('activerecord.errors.messages.blank')
item.errors[:user].should == [I18n.t('activerecord.errors.messages.blank')]
end
end
end

Loading…
Cancel
Save