example. - Use subscriptions to determine whether we're in the example block or not. - This is a bit more code, but takes some of the noise out of the run() method.
Previously, we shelled out via system calls to ruby, now we just require the runner, disable the at exit hook, and the suite progresses as normal.
… for paths such as "bundle exec rcov"
This allows custom behavior in before blocks that can be triggered by passing in arbitrary metadata to the "it" method when setting up the example: it 'should be special', :special => true do ... end The custom behavior can be set-up, for example, using config.before: RSpec.configure do |config| config.before :each do special_setup if example.options[:special] end end Closes #42.
it is set in an options file. Closes #74.