Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Ensure we fail in the right way when default source is null
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsdeleo committed Jul 8, 2015
1 parent 064b607 commit 492042f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions spec/unit/policyfile_demands_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,26 @@

let(:run_list) { ["remote-cb"] }

context "with no default source" do

it "fails to locate the cookbook" do
expect { policyfile.graph_solution }.to raise_error(Solve::Errors::NoSolutionError)
end

context "when the policyfile also has a `cookbook` entry for the run list item" do

before do
policyfile.dsl.cookbook "remote-cb"
end

it "fails to locate the cookbook" do
expect { policyfile.graph_solution }.to raise_error(Solve::Errors::NoSolutionError)
end

end

end

context "And the default source is the community site" do

include_context "community default source"
Expand Down

0 comments on commit 492042f

Please sign in to comment.