summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pitman <michaelp@ibglobalweb.com>2017-08-30 13:25:46 +1000
committerMichael Pitman <michaelp@ibglobalweb.com>2017-08-30 13:25:46 +1000
commit6f83af71889e9c837fc83ec1fd09bd25188d4eff (patch)
treed9e6c616560d0d44a8dc8f4a4c82280a6b095ad1
parent17e9a37c1a79d9c3220a90e36f5f32dc61c69245 (diff)
downloadbundler-6f83af71889e9c837fc83ec1fd09bd25188d4eff.tar.gz
Change let block in spec from curly braces to a do/end block to conform with style guide while retaining the explanatory comments
-rw-r--r--spec/bundler/shared_helpers_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/shared_helpers_spec.rb b/spec/bundler/shared_helpers_spec.rb
index d8f6e1ef18..bd9cb6b402 100644
--- a/spec/bundler/shared_helpers_spec.rb
+++ b/spec/bundler/shared_helpers_spec.rb
@@ -281,11 +281,11 @@ RSpec.describe Bundler::SharedHelpers do
context "with a jruby path_separator regex", :ruby => "1.9" do
# In versions of jruby that supported ruby 1.8, the path separator was the standard File::PATH_SEPARATOR
- let(:regex) {
+ let(:regex) do
# If this is stated as a literal regex we get a syntax error when simply loading this file,
# even if the expression is never evaluated
eval("/(?<!jar:file|jar|file|classpath|uri:classloader|uri|http|https):/")
- }
+ end
it "does not exit if bundle path is the standard uri path" do
allow(Gem).to receive(:path_separator).and_return(regex)
allow(Bundler).to receive(:bundle_path) { Pathname.new("uri:classloader:/WEB-INF/gems") }