spec/spec_helper.rb in mad_mimi-0.0.1 vs spec/spec_helper.rb in mad_mimi-0.0.2

- old
+ new

@@ -2,20 +2,20 @@ require 'rspec' require 'webmock/rspec' include WebMock::API -def a_post(path) - a_request(:post, MadMimi.api_url + path) +def a_post(path, ssl = false) + a_request(:post, MadMimi.api_url(ssl) + path) end -def stub_get(path) - path = path + '?' + parameterize(MadMimi.authentication) +def stub_get(path, options = {}) + path = path + '?' + parameterize(options.merge(MadMimi.authentication)) stub_request(:get, MadMimi.api_url + path) end -def stub_post(path) - stub_request(:post, MadMimi.api_url + path) +def stub_post(path, ssl = false) + stub_request(:post, MadMimi.api_url(ssl) + path) end def fixture_path File.expand_path("../fixtures", __FILE__) end \ No newline at end of file