spec/osm/budget_spec.rb in osm-1.2.1 vs spec/osm/budget_spec.rb in osm-1.2.2
- old
+ new
@@ -39,10 +39,10 @@
"name" => "Name",
"archived" => "1"
}
]
}
- FakeWeb.register_uri(:post, "https://www.onlinescoutmanager.co.uk/finances.php?action=getCategories§ionid=3", :body => data.to_json)
+ FakeWeb.register_uri(:post, "https://www.onlinescoutmanager.co.uk/finances.php?action=getCategories§ionid=3", :body => data.to_json, :content_type => 'application/json')
budgets = Osm::Budget.get_for_section(@api, 3)
budgets.should == [Osm::Budget.new(:id => 2, :section_id => 3, :name => 'Name')]
end