spec/osm/sms_spec.rb in osm-1.2.1 vs spec/osm/sms_spec.rb in osm-1.2.2
- old
+ new
@@ -189,10 +189,10 @@
"firstname" => "To",
"lastname" => "Name",
"to" => "To Name 441234567890"
}]
}
- FakeWeb.register_uri(:post, "https://www.onlinescoutmanager.co.uk/sms.php?action=deliveryReports§ionid=1&dateFormat=generic", :body => data.to_json)
+ FakeWeb.register_uri(:post, "https://www.onlinescoutmanager.co.uk/sms.php?action=deliveryReports§ionid=1&dateFormat=generic", :body => data.to_json, :content_type => 'application/json')
reports = Osm::Sms::DeliveryReport.get_for_section(@api, 1)
reports.size.should == 1
report = reports[0]
report.sms_id.should == 2