test/helper.rb in createsend-0.2.1 vs test/helper.rb in createsend-0.3.0
- old
+ new
@@ -24,10 +24,10 @@
def stub_request(method, api_key, url, filename, status=nil)
options = {:body => ""}
options.merge!({:body => fixture_file(filename)}) if filename
options.merge!({:status => status}) if status
- options.merge!(:content_type => "application/json")
+ options.merge!(:content_type => "application/json; charset=utf-8")
FakeWeb.register_uri(method, createsend_url(api_key, url), options)
end
def stub_get(*args); stub_request(:get, *args) end
def stub_post(*args); stub_request(:post, *args) end