Hi,
This used to work:
config = RSpec.configuration
json_formatter = RSpec::Core::Formatters::JsonFormatter.new(config.out)
reporter = RSpec::Core::Reporter.new(json_formatter)
config.instance_variable_set(:@reporter, reporter)
RSpec::Core::Runner.run(["#{Rails.root}/spec/test1_spec.rb"])
puts json_formatter.output_hash
Now, however, I receive this error:
undefined method `out' for #<RSpec::Core::Configuration
Has the Configuration interface changed?
--
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/58acfd77-88b5-4a9a-9a1e-3c29edb1d4e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.