diff options
author | Samuel E. Giddins <segiddins@segiddins.me> | 2015-07-15 20:52:48 -0700 |
---|---|---|
committer | Samuel E. Giddins <segiddins@segiddins.me> | 2015-07-15 20:52:48 -0700 |
commit | a77ca278809d7f31fa51e4b821faed86324c8275 (patch) | |
tree | da1c6c68b24fdcab9acfc07b6a352a39af1c6f4e /spec/support/matchers.rb | |
parent | af694073229af89af205d24ff449f51f74316a37 (diff) | |
download | bundler-a77ca278809d7f31fa51e4b821faed86324c8275.tar.gz |
[RuboCop] Enable Style/StringLiterals
Diffstat (limited to 'spec/support/matchers.rb')
-rw-r--r-- | spec/support/matchers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index e42c67be57..b4b18e7839 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -32,7 +32,7 @@ module Spec groups << opts names.each do |name| name, version, platform = name.split(/\s+/) - version_const = name == 'bundler' ? 'Bundler::VERSION' : Spec::Builders.constantize(name) + version_const = name == "bundler" ? "Bundler::VERSION" : Spec::Builders.constantize(name) run "require '#{name}.rb'; puts #{version_const}", *groups actual_version, actual_platform = out.split(/\s+/) expect(Gem::Version.new(actual_version)).to eq(Gem::Version.new(version)) @@ -70,7 +70,7 @@ module Spec def lockfile_should_be(expected) should_be_locked spaces = expected[/\A\s+/, 0] || "" - expected.gsub!(/^#{spaces}/, '') + expected.gsub!(/^#{spaces}/, "") expect(bundled_app("Gemfile.lock").read).to eq(expected) end end |