From 92c508bb3686e3bb469c2d6358ecaf3b302d4a9f Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sat, 20 Nov 2010 19:08:36 -0800 Subject: [PATCH] Silence warnings on ruby 1.9 build --- features/step_definitions/web_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/web_steps.rb b/features/step_definitions/web_steps.rb index 5a5529704..a16dc0821 100644 --- a/features/step_definitions/web_steps.rb +++ b/features/step_definitions/web_steps.rb @@ -26,7 +26,7 @@ end When /^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/ do |button, selector| with_scope(selector) do - click_button(button) + silence_warnings { click_button(button) } # ruby 1.9 produces a warning about UTF8 from rack-util end end