Skip to content

Commit

Permalink
Merge pull request #2755 from javierjulio/patch-4
Browse files Browse the repository at this point in the history
Replace OpenStruct dependency with Struct
  • Loading branch information
pirj authored and JonRowe committed Apr 10, 2024
1 parent 44b3dc5 commit 4066b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rspec/rails/example/view_example_group_spec.rb
Expand Up @@ -187,7 +187,7 @@ def _default_file_to_render; end # Stub method
Class.new do
include ViewExampleGroup::ExampleMethods
def controller
@controller ||= OpenStruct.new(params: nil)
@controller ||= Struct.new(:params).new(nil)
end
end.new
end
Expand Down

0 comments on commit 4066b49

Please sign in to comment.