spec/client_spec.rb in pmp-0.3.2 vs spec/client_spec.rb in pmp-0.4.0

- old
+ new

@@ -22,21 +22,21 @@ it "root doc can be loaded" do root_doc = json_file(:collection_root) stub_request(:get, "https://api.pmp.io/"). - with(:headers => {'Accept'=>'application/vnd.pmp.collection.doc+json', 'Content-Type'=>'application/vnd.pmp.collection.doc+json', 'Host'=>'api.pmp.io:443'}). + with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Content-Type'=>'application/vnd.collection.doc+json', 'Host'=>'api.pmp.io:443'}). to_return(:status => 200, :body => root_doc, :headers => {}) @root = @pmp.root @root.creator.first.must_be_instance_of PMP::Link end it "calls the root doc when client does not have method" do root_doc = json_file(:collection_root) stub_request(:get, "https://api.pmp.io/"). - with(:headers => {'Accept'=>'application/vnd.pmp.collection.doc+json', 'Content-Type'=>'application/vnd.pmp.collection.doc+json', 'Host'=>'api.pmp.io:443'}). + with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Content-Type'=>'application/vnd.collection.doc+json', 'Host'=>'api.pmp.io:443'}). to_return(:status => 200, :body => root_doc, :headers => {}) @pmp.creator.first.must_be_instance_of PMP::Link end