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 Apr 9, 2024
2 parents 8cee7cb + 00c685d commit 2787525
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/rspec/rails/example/view_example_group_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'ostruct'
require 'support/group_failure_formatter'

module RSpec::Rails
Expand Down Expand Up @@ -188,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 2787525

Please sign in to comment.