summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-11-22 19:01:36 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-11-22 19:01:36 +0100
commit1a208a3cd8c4bc4bc208fd6331eae28c1f991960 (patch)
tree2bac5d914b0f21f1ccd29029372d987fb401d9e7
parenta94b3d749937c5d22b2bea2bc1d788eb33c106c2 (diff)
downloadbundler-1a208a3cd8c4bc4bc208fd6331eae28c1f991960.tar.gz
Fixup style issues
-rw-r--r--spec/commands/version_spec.rb6
-rw-r--r--spec/support/path.rb6
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/commands/version_spec.rb b/spec/commands/version_spec.rb
index f85ac82a40..8eecd9c53e 100644
--- a/spec/commands/version_spec.rb
+++ b/spec/commands/version_spec.rb
@@ -1,12 +1,12 @@
# frozen_string_literal: true
-require_relative '../support/path'
+require_relative "../support/path"
RSpec.describe "bundle version" do
if Spec::Path.ruby_core?
- COMMIT_HASH = /unknown|[a-fA-F0-9]{7,}/
+ COMMIT_HASH = /unknown|[a-fA-F0-9]{7,}/.freeze
else
- COMMIT_HASH = /[a-fA-F0-9]{7,}/
+ COMMIT_HASH = /[a-fA-F0-9]{7,}/.freeze
end
context "with -v" do
diff --git a/spec/support/path.rb b/spec/support/path.rb
index 6f78490fe8..4b3941b70f 100644
--- a/spec/support/path.rb
+++ b/spec/support/path.rb
@@ -31,21 +31,21 @@ module Spec
def tracked_files
if root != `git rev-parse --show-toplevel`
- skip 'not in git working directory'
+ skip "not in git working directory"
end
@tracked_files ||= ruby_core? ? `git ls-files -z -- lib/bundler lib/bundler.rb spec/bundler man/bundler*` : `git ls-files -z`
end
def shipped_files
if root != `git rev-parse --show-toplevel`
- skip 'not in git working directory'
+ skip "not in git working directory"
end
@shipped_files ||= ruby_core? ? `git ls-files -z -- lib/bundler lib/bundler.rb man/bundler* libexec/bundle*` : `git ls-files -z -- lib man exe CHANGELOG.md LICENSE.md README.md bundler.gemspec`
end
def lib_tracked_files
if root != `git rev-parse --show-toplevel`
- skip 'not in git working directory'
+ skip "not in git working directory"
end
@lib_tracked_files ||= ruby_core? ? `git ls-files -z -- lib/bundler lib/bundler.rb` : `git ls-files -z -- lib`
end