Skip to content

Commit e0d6470

Browse files
author
Sam Phippen
committed
rubbycop
1 parent a51bba7 commit e0d6470

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/rspec/rails/example/view_example_group.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,11 @@ 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
134-
else
135-
[:html, :text, :js, :css, :xml, :json].map(&:to_s)
133+
ActionView::Template::Types.symbols
134+
else
135+
[:html, :text, :js, :css, :xml, :json].map(&:to_s)
136136
end.map { |x| Regexp.escape(x) }.join("|")
137137

138-
139138
handlers = ActionView::Template::Handlers.extensions.map { |x| Regexp.escape(x) }.join("|")
140139
locales = "[a-z]{2}(?:-[A-Z]{2})?"
141140
variants = "[^.]*"

0 commit comments

Comments
 (0)