Skip to content

Commit 007a281

Browse files
author
Sam Phippen
committed
good programmer
1 parent 0ee856c commit 007a281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/rails/example/view_example_group.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def rendered.body
130130
def _default_render_options
131131
if ::Rails::VERSION::STRING >= '3.2'
132132
formats = if ActionView::Template::Types.respond_to?(:symbols)
133-
ActionView::Template::Types.symbols.map { |x| Regexp.escape(x) }.join("|")
133+
ActionView::Template::Types.symbols
134134
else
135135
[:html, :text, :js, :css, :xml, :json].map(&:to_s)
136136
end.map { |x| Regexp.escape(x) }.join("|")

0 commit comments

Comments
 (0)