Skip to content

Commit

Permalink
Replace OpenStruct dependency with Struct
Browse files Browse the repository at this point in the history
  • Loading branch information
javierjulio committed Apr 9, 2024
1 parent 8cee7cb commit 00c685d
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 00c685d

Please sign in to comment.