sebastienlachance
3/25/2011 - 12:16 PM

test that prove error on before_save

test that prove error on before_save

it "should be able to save if delta is disabled" do
  @company.increment_displayed
  @company.save!
end

# result : 
# Failure/Error: @company.save!
# ActiveRecord::RecordNotSaved