-
Notifications
You must be signed in to change notification settings - Fork 20
RSpec errors when using spring #23
Copy link
Copy link
Open
Description
Problem
ℹ️ FYI, I get RSpec errors when using spring because the custom testing/rspec RSpec matchers aren't loaded.
Errors
NameError:
undefined local variable or method `act_as_enumerated'
and
expected #<...> to respond to `has_enumerated?`
Fix
My workaround is to add the the following to my rails config/environments/test.rb file:
config.to_prepare do
require_dependency "testing/rspec"
endContext
This is inspired by rails/spring#505 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels