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

Commit

Permalink
Merge pull request #3094 from jetaggart/master
Browse files Browse the repository at this point in the history
Add spec around adding a binstub for an unknown gem
  • Loading branch information
hone committed Jul 12, 2014
2 parents 61537b8 + 9fb36c6 commit 0cf6a8b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/commands/binstubs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,19 @@
end
end

context "when the gem doesn't exist" do
it "displays an error with correct status" do
install_gemfile <<-G
source "file://#{gem_repo1}"
G

bundle "binstubs doesnt_exist", :exitstatus => true

expect(exitstatus).to eq(7)
expect(out).to eq("Could not find gem 'doesnt_exist'.")
end
end

context "--path" do
it "sets the binstubs dir" do
install_gemfile <<-G
Expand Down

0 comments on commit 0cf6a8b

Please sign in to comment.