summaryrefslogtreecommitdiff
path: root/spec/bundler/settings_spec.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-07-18 16:44:14 -0600
committerAndre Arko <andre@arko.net>2015-07-18 16:45:36 -0600
commit0f8bc78180ce4f8bae5dc48e2078b44cd4fafe44 (patch)
treec175c911a748afd50c0045038499a5a349fec135 /spec/bundler/settings_spec.rb
parent14a7eb25ee03c9fb4ecf3e4c6b1f44a8267a413a (diff)
downloadbundler-0f8bc78180ce4f8bae5dc48e2078b44cd4fafe44.tar.gz
Fix Style/SpaceInsideBlockBraces
closes #3853
Diffstat (limited to 'spec/bundler/settings_spec.rb')
-rw-r--r--spec/bundler/settings_spec.rb6
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