Closed hanachin closed 10 years ago
I have a small comment inlined in the diff, otherwise it looks good
I separately tried to support RSpec 3, but apparently RSpec.configuration= was removed after this pull request was submitted and that breaks how config_cache works.
I've opened an issue with RSpec to see what the new way of resetting is: rspec/rspec-core#1700
Thanks for figuring this out
This works for me with RSpec 3.1 and Rails 4.1.
@ebeigarts thanks :)
My workaround for rspec 3.
Use
RSpec::Core::Runner
instead ofRSpec::Core::CommandLine
:Merge RSpec::Core::CommandLine (never formally declared public) into RSpec::Core::Runner. (Myron Marston)
Use
RSpec::Core::World#reset
andRSpec::Core::Configuration#reset
which currently private api:Use
config.color
instead ofconfig.color_enabled
:Remove color_enabled as an alias of color. (Jon Rowe)