Skip to content

Commit

Permalink
Add support for options (sinatra 1.2.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed Mar 9, 2011
1 parent f3612f4 commit d2ab2fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sinatra/async/test.rb
Expand Up @@ -51,7 +51,7 @@ def handle_last_response(uri, env, status, headers, body)
module Methods
include Rack::Test::Methods

%w(get put post delete head).each do |m|
%w(get put post delete head options).each do |m|
eval <<-RUBY, binding, __FILE__, __LINE__ + 1
def a#{m}(*args)
#{m}(*args)
Expand Down Expand Up @@ -105,4 +105,4 @@ def em_hard_loop
end
end
end
end
end

0 comments on commit d2ab2fd

Please sign in to comment.