We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db7a513 + 38f6d12 commit 081e3f0Copy full SHA for 081e3f0
lib/rspec/core/configuration_options.rb
@@ -168,7 +168,13 @@ def args_from_options_file(path)
168
end
169
170
def options_file_as_erb_string(path)
171
- ERB.new(File.read(path), nil, '-').result(binding)
+ # FIXME: Consider removing the following conditional branch after Ruby 2.6 is released.
172
+ # https://github.com/ruby/ruby/commit/cc777d09f44fa909a336ba14f3aa802ffe16e010
173
+ if RUBY_VERSION >= '2.6'
174
+ ERB.new(File.read(path), :trim_mode => '-').result(binding)
175
+ else
176
+ ERB.new(File.read(path), nil, '-').result(binding)
177
+ end
178
179
180
def custom_options_file
0 commit comments