bundle-new/spec/bundler/friendly_errors_spec.rb

14 lines
330 B
Ruby
Raw Normal View History

2019-10-06 15:45:34 +00:00
require "spec_helper"
require "bundler"
require "bundler/friendly_errors"
describe Bundler, "friendly errors" do
it "rescues Thor::AmbiguousTaskError and raises SystemExit" do
expect {
Bundler.with_friendly_errors do
raise Thor::AmbiguousTaskError.new("")
end
}.to raise_error(SystemExit)
end
end