From 8c1202b95d529eb7ea6b5c4c05b5f5db98e4f2c4 Mon Sep 17 00:00:00 2001 From: Martin Linkhorst Date: Mon, 14 May 2012 15:42:46 +0200 Subject: [PATCH] just fixed a failing test --- spec/controllers/costlog_controller_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/controllers/costlog_controller_spec.rb b/spec/controllers/costlog_controller_spec.rb index c996e5bbad..291f6b2020 100644 --- a/spec/controllers/costlog_controller_spec.rb +++ b/spec/controllers/costlog_controller_spec.rb @@ -381,7 +381,8 @@ describe CostlogController do before do grant_current_user_permissions user, [:log_costs] - cost_type.update_attributes({ :deleted_at => Date.today }) + cost_type.deleted_at = Date.today + cost_type.save! end it_should_behave_like "invalid create"