Skip to content

Commit ed97014

Browse files
committed
Ensure format is in the type that rails expects
Rails expects the format to be a symbol. It filters formats against `Mime::SET.symbols` so formats which are unknown or are not used in cache keys. WIP
1 parent 63f2a5c commit ed97014

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
@@ -114,7 +114,7 @@ def _default_render_options
114114

115115
render_options = { :template => template }
116116
render_options[:handlers] = [handler] if handler
117-
render_options[:formats] = [format] if format
117+
render_options[:formats] = [format.to_sym] if format
118118
render_options[:locales] = [locale] if locale
119119

120120
render_options

0 commit comments

Comments
 (0)