Skip to content

Commit

Permalink
good programmer
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Phippen committed May 1, 2019
1 parent 0ee856c commit 007a281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/rails/example/view_example_group.rb
Expand Up @@ -130,7 +130,7 @@ def rendered.body
def _default_render_options
if ::Rails::VERSION::STRING >= '3.2'
formats = if ActionView::Template::Types.respond_to?(:symbols)
ActionView::Template::Types.symbols.map { |x| Regexp.escape(x) }.join("|")
ActionView::Template::Types.symbols
else
[:html, :text, :js, :css, :xml, :json].map(&:to_s)
end.map { |x| Regexp.escape(x) }.join("|")
Expand Down

0 comments on commit 007a281

Please sign in to comment.