Skip to content

Commit 883d87a

Browse files
javierjulioJonRowe
authored andcommitted
Require ostruct to fix test failure
This resolves the following OpenStruct error. There is only 1 reference to OpenStruct in this file, no other references in the code base. ``` NameError: uninitialized constant RSpec::Rails::OpenStruct # ./spec/rspec/rails/example/view_example_group_spec.rb:190:in `controller' # ./spec/rspec/rails/example/view_example_group_spec.rb:196:in `block (3 levels) in <module:Rails>' # /home/runner/work/rspec-rails/rspec-core/lib/rspec/core/example.rb:263:in `instance_exec' ``` This could be caused by a recent gem update like `json` as I encountered this with serpapi/turbo_tests#49 as I use turbo_tests to run my rspec test suite.
1 parent 13958cc commit 883d87a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/rspec/rails/example/view_example_group_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require 'ostruct'
12
require 'support/group_failure_formatter'
23

34
module RSpec::Rails

0 commit comments

Comments
 (0)