Sha256: 94efd61629297372a750963bdce7b9aced7d6ea86753a3dec51a6e72005962a4
Contents?: true
Size: 896 Bytes
Versions: 1
Compression:
Stored size: 896 Bytes
Contents
module Hodor::Oozie describe Bundle do describe "Required Public Interface" do subject { Hodor::Oozie::Bundle.instance_methods } # Public fields it { should include :status } # Public methods it { should include :children } end context "Request bundle by job id that does not exist" do include_context "hodor api" do let(:playback) { :sample_bundle } end let(:request_details) { /v1\/job\/0023753-151002103648730-oozie-oozi-B/ } before(:each) do expect(session).to receive(:rest_call).with(request_details).once.and_mimic_original(memo) end it "should should throw exception when searching for a bundle that does not exist" do expect { oozie.job_by_id "0023753-151002103648730-oozie-oozi-B" }.to raise_error JSON::ParserError end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hodor-1.0.2 | spec/integration/api/oozie/bundle_spec.rb |