From 11d57c059917bdca81abb83db175ce86de80e212 Mon Sep 17 00:00:00 2001 From: Sebastian Schuster Date: Wed, 27 Nov 2013 14:01:39 +0100 Subject: [PATCH] Fixed modal selenium error by always saving a model when setting it up by send_table_to_object --- features/step_definitions/general_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/general_steps.rb b/features/step_definitions/general_steps.rb index ed43cd5fd2..0644286d95 100644 --- a/features/step_definitions/general_steps.rb +++ b/features/step_definitions/general_steps.rb @@ -425,7 +425,7 @@ def send_table_to_object(object, table, except = {}, rescue_block = nil) raise "No such method #{_key} on a #{object.class}" end end - object.save! if object.changed? + object.save! end end