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

Fix unknown constant error #3095

Merged
merged 1 commit into from
Jul 12, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/bundler/cli/binstubs.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require "bundler/cli/common"

module Bundler
class CLI::Binstubs
attr_reader :options, :gems
Expand Down
13 changes: 13 additions & 0 deletions spec/commands/binstubs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,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