Sha256: 4f27059f09ac3099f1e989a243bb60324d0176e868306c2e527b453d520f4d0c
Contents?: true
Size: 712 Bytes
Versions: 10
Compression:
Stored size: 712 Bytes
Contents
require "spec_helper" describe Auth0::Api::V2::Jobs do before :all do dummy_instance = DummyClass.new dummy_instance.extend(Auth0::Api::V2::Jobs) @instance = dummy_instance end context ".get_job" do it{expect(@instance).to respond_to(:get_job)} it "expect client to send get to /api/v2/stats/jobs/3" do expect(@instance).to receive(:get).with("/api/v2/jobs/3") expect{@instance.get_job(3)}.not_to raise_error end end context ".daily_stats" do it{expect(@instance).to respond_to(:create_job)} it "expect client to send get to /api/v2/stats/daily" do expect{@instance.create_job("file_name","name")}.to raise_error(NotImplementedError) end end end
Version data entries
10 entries across 10 versions & 1 rubygems