aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/bundler/quality_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/bundler/quality_spec.rb b/spec/bundler/quality_spec.rb
index ee911699b3..6b010fe872 100644
--- a/spec/bundler/quality_spec.rb
+++ b/spec/bundler/quality_spec.rb
@@ -41,11 +41,9 @@ RSpec.describe "The library itself" do
end
def check_for_extraneous_quotes(filename)
- return if File.expand_path(filename) == __FILE__
-
failing_lines = []
each_line(filename) do |line, number|
- failing_lines << number + 1 if /’/.match?(line)
+ failing_lines << number + 1 if /\u{2019}/.match?(line)
end
return if failing_lines.empty?