test/test_helper.rb in mambanation-0.0.3 vs test/test_helper.rb in mambanation-0.0.5
- old
+ new
@@ -1,6 +1,5 @@
-require "rubygems"
require "test/unit"
require "pathname"
require "shoulda"
require "matchy"
require "mocha"
@@ -24,10 +23,10 @@
file_path = File.expand_path(File.dirname(__FILE__) + "/fixtures/" + filename)
File.read(file_path)
end
def mambanation_url(url)
- url =~ /^http/ ? url : "http://api.mambanation.com:80#{url}"
+ url =~ /^http/ ? url : "http://username:password@api.mambanation.com/v2/#{url}"
end
def stub_get(url, filename, status=nil)
options = {:body => fixture_file(filename)}
options.merge!({:status => status}) unless status.nil?