Yes, the interfaces here in RSpec 3 have changed. I found a good answer on 
Stack Overflow <http://stackoverflow.com/a/10412793/106906>. It does use 
this mysterious code, though:

# internal hack# api may not be stable, make sure lock down Rspec version
loader = config.send(:formatter_loader)
notifications = loader.send(:notifications_for, 
RSpec::Core::Formatters::JsonFormatter)

reporter.register_listener(formatter, *notifications)


I'm not sure what that's about.

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/52a47979-6502-41c9-bccf-1602e36aa4d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to