spec/link_spec.rb in caren-api-0.4.19 vs spec/link_spec.rb in caren-api-0.4.20

- old
+ new

@@ -28,12 +28,12 @@ links_url = Caren::Api.session.url_for(Caren::Link.resource_url) search_url = Caren::Api.session.url_for("#{Caren::Link.resource_url}?key=external-id&value=1") timestamp = DateTime.now.to_i - FakeWeb.register_uri(:get, link_url, :body => link, :timestamp => timestamp, :signature => Caren::Api.session.sign(timestamp,link) ) - FakeWeb.register_uri(:get, links_url, :body => links, :timestamp => timestamp, :signature => Caren::Api.session.sign(timestamp,links) ) - FakeWeb.register_uri(:get, search_url, :body => search, :timestamp => timestamp, :signature => Caren::Api.session.sign(timestamp,search) ) + FakeWeb.register_uri(:get, link_url, :body => link, :timestamp => timestamp, :signature => Caren::Api.session.sign(timestamp,nil,link) ) + FakeWeb.register_uri(:get, links_url, :body => links, :timestamp => timestamp, :signature => Caren::Api.session.sign(timestamp,nil,links) ) + FakeWeb.register_uri(:get, search_url, :body => search, :timestamp => timestamp, :signature => Caren::Api.session.sign(timestamp,nil,search) ) FakeWeb.register_uri(:post, links_url, :status => 201, :timestamp => timestamp, :signature => Caren::Api.session.sign(timestamp) ) end it "should be able to create a new link using the API" do lambda{ Caren::Link.new( :patient_number => "12345" ).create(Caren::Api.session) }.should_not raise_error \ No newline at end of file