Skip to content

Commit

Permalink
Shush Object#timeout deprecation. Switch to Timeout.timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Oct 4, 2015
1 parent 0a405d6 commit 5e11439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/spec_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def assert_nested_query exp, act
end

it "not hang on escaping long strings that end in % (http://redmine.ruby-lang.org/issues/5149)" do
timeout(1) do
Timeout.timeout(1) do
lambda {
URI.decode_www_form_component "A string that causes catastrophic backtracking as it gets longer %"
}.must_raise ArgumentError
Expand Down

0 comments on commit 5e11439

Please sign in to comment.