Sha256: c0097e23ca4f2bdff3d6f5536533d25361bed343948749b2981dd2d6740d1955
Contents?: true
Size: 624 Bytes
Versions: 1
Compression:
Stored size: 624 Bytes
Contents
require 'spec_helper' require 'bundler/definition' describe Bundler::Definition do before do allow(Bundler).to receive(:settings){ Bundler::Settings.new(".") } end describe "#lock" do context "when it's not possible to write to the file" do subject{ Bundler::Definition.new(nil, [], [], []) } before do expect(File).to receive(:open).with("Gemfile.lock", "wb"). and_raise(Errno::EACCES) end it "raises an InstallError with explanation" do expect{ subject.lock("Gemfile.lock") }. to raise_error(Bundler::InstallError) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bundler-1.5.3 | spec/bundler/definition_spec.rb |