Closed zmoazeni closed 10 years ago
Cheers for the report. I've managed to derive a failing test, and will look at integrating your fix. Looks like Reporter#register_listener is new, so I might have to get tricky to support backward compatibility.
@mdub Yeah that's fair.
One hackish suggestion:
1.9.3p484 :020 > RSpec.configuration.reporter.respond_to?(:register_listener)
=> true
Another slightly more robust one:
1.9.3p484 :018 > major, minor = RSpec::Version::STRING.split('.')
=> ["2", "14", "1"]
1.9.3p484 :019 > major.to_i <= 2 && minor.to_i < 14
=> false
Hi there, the internals have changed in 2.14 where the internal steps aren't printed out. The longrun spec works, but you can reproduce it with the following:
I haven't figured out the best way to submit a PR, but this works for me locally without having to monkey patch RSpec::Core:
Looking at the rspec internals, I believe all of those methods are considered public API.