spec/install_spec.rb in rubygems-tasks-0.2.5 vs spec/install_spec.rb in rubygems-tasks-0.2.6
- old
+ new
@@ -6,9 +6,13 @@
describe Gem::Tasks::Install do
describe "#install" do
let(:path) { 'pkg/foo-1.2.3.gem' }
it "should use `gem install -q`" do
+ if defined?(Bundler)
+ expect(Bundler).to receive(:with_original_env).and_yield()
+ end
+
expect(subject).to receive(:run).with('gem', 'install', '-q', path)
subject.install(path)
end
end