Module: RSpec::Abq::Extensions::World

Defined in:
lib/rspec/abq/extensions.rb

Overview

RSpec uses this for global data that’s not configuration

Instance Method Summary collapse

Instance Method Details

#ordered_example_groupsObject

we call configure_rspec in #ordered_example_groups because it is called

  1. AFTER all specs are loaded.

    We need to call it after all specs are loaded because we want to potentially overwrite config set in the specs
    
  2. BEFORE any specs are run.

    We want to call it before any specs are run because the config we set may affect spec ordering.
    


179
180
181
182
# File 'lib/rspec/abq/extensions.rb', line 179

def ordered_example_groups
  RSpec::Abq.configure_rspec!
  super
end