spec/unit/client_spec.rb in duracloud-client-0.8.0 vs spec/unit/client_spec.rb in duracloud-client-0.9.0

- old
+ new

@@ -327,7 +327,31 @@ specify { expect { subject.perform_task("enable-streaming") } .to raise_error(NotImplementedError) } end + + describe "get_storage_reports_by_space" do + specify { + stub = stub_request(:get, "https://example.com/durastore/report/space/foo") + subject.get_storage_reports_by_space("foo") + expect(stub).to have_been_requested + } + end + + describe "get_storage_reports_by_store" do + specify { + stub = stub_request(:get, "https://example.com/durastore/report/store") + subject.get_storage_reports_by_store + expect(stub).to have_been_requested + } + end + + describe "get_storage_reports_for_all_spaces_in_a_store" do + specify { + stub = stub_request(:get, "https://example.com/durastore/report/store/1499400000000") + subject.get_storage_reports_for_all_spaces_in_a_store(1499400000000) + expect(stub).to have_been_requested + } + end end end