diff --git a/spec/rspec/rails/example/view_example_group_spec.rb b/spec/rspec/rails/example/view_example_group_spec.rb index 7f6629c7c..8759103b7 100644 --- a/spec/rspec/rails/example/view_example_group_spec.rb +++ b/spec/rspec/rails/example/view_example_group_spec.rb @@ -1,3 +1,4 @@ +require 'ostruct' require 'support/group_failure_formatter' module RSpec::Rails @@ -187,7 +188,7 @@ def _default_file_to_render; end # Stub method Class.new do include ViewExampleGroup::ExampleMethods def controller - @controller ||= OpenStruct.new(params: nil) + @controller ||= ::OpenStruct.new(params: nil) end end.new end