diff options
Diffstat (limited to 'spec/bundler/settings_spec.rb')
-rw-r--r-- | spec/bundler/settings_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/bundler/settings_spec.rb b/spec/bundler/settings_spec.rb index 3578155265..8be5d98cb2 100644 --- a/spec/bundler/settings_spec.rb +++ b/spec/bundler/settings_spec.rb @@ -9,7 +9,7 @@ describe Bundler::Settings do subject(:settings) { described_class.new(nil) } it "raises a GemfileNotFound error with explanation" do - expect{ subject.set_local("foo", "bar") }. + expect { subject.set_local("foo", "bar") }. to raise_error(Bundler::GemfileNotFound, "Could not locate Gemfile") end end @@ -45,7 +45,7 @@ describe Bundler::Settings do it "raises an PermissionError with explanation" do expect(FileUtils).to receive(:mkdir_p).with(settings.send(:local_config_file).dirname). and_raise(Errno::EACCES) - expect{ settings[:frozen] = "1" }. + expect { settings[:frozen] = "1" }. to raise_error(Bundler::PermissionError, /config/) end end @@ -56,7 +56,7 @@ describe Bundler::Settings do it "raises an PermissionError with explanation" do expect(FileUtils).to receive(:mkdir_p).with(settings.send(:global_config_file).dirname). and_raise(Errno::EACCES) - expect{ settings.set_global(:frozen, "1") }. + expect { settings.set_global(:frozen, "1") }. to raise_error(Bundler::PermissionError, /\.bundle\/config/) end end |