spec/care_provider_spec.rb in caren-api-0.2.0 vs spec/care_provider_spec.rb in caren-api-0.3.0
- old
+ new
@@ -81,14 +81,14 @@
:body => care_providers_search,
:signature => Caren::Api.sign(care_providers_search) )
end
it "should be able to update a care provider" do
- lambda{ Caren::CareProvider.new( :caren_id => 1, :name => "Test" ).update }.should_not raise_error
+ lambda{ Caren::CareProvider.new( :id => 1, :name => "Test" ).update }.should_not raise_error
end
it "should be able to update the logo for a care provider" do
- lambda{ Caren::CareProvider.new( :caren_id => 1 ).update_logo( "spec/fixtures/bacon.jpg" ) }.should_not raise_error
+ lambda{ Caren::CareProvider.new( :id => 1 ).update_logo( "spec/fixtures/bacon.jpg" ) }.should_not raise_error
end
it "should be able to search for a specific care provider" do
care_providers = Caren::CareProvider.search :url_shortcut, "pantein"
care_providers.should have(1).things
\ No newline at end of file