Skip to content

Commit

Permalink
Make all tests pass : A great improvement -> Multi API in the same
Browse files Browse the repository at this point in the history
project

Needs a version bump!!!
  • Loading branch information
hallelujah committed Oct 26, 2010
1 parent a4257c4 commit d2760c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/spore.rb
Expand Up @@ -149,7 +149,8 @@ def define_method(name, m)
expected = m['expected']
desc = m['description']

Spore.send(:define_method, name) do |args|
mod = Module.new
mod.send(:define_method, name) do |args|

# make sure all mandatory params are sent
required.each do |mandatory|
Expand Down Expand Up @@ -216,6 +217,7 @@ def define_method(name, m)

response
end
self.extend(mod)
end

def send_http_request(method, path, params, headers)
Expand Down

0 comments on commit d2760c3

Please sign in to comment.