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 7c0e195
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/unit/policyfile_demands_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@

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

end

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

include_context "community default source"
Expand Down

0 comments on commit 7c0e195

Please sign in to comment.