Skip to content

Commit

Permalink
Unbreak on ruby 1.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd committed Feb 24, 2012
1 parent 790dba0 commit 4afeedc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/webmachine/test/session.rb
Expand Up @@ -34,9 +34,11 @@ def body(value)
end

HTTP_METHODS.each do |method|
define_method method.downcase do |uri, options={}|
do_request(method.upcase, uri, options || {})
end
class_eval <<-__RUBY
def #{method.downcase}(uri, options = {})
do_request('#{method.upcase}', uri, options)
end
__RUBY
end

private
Expand Down

0 comments on commit 4afeedc

Please sign in to comment.