Module: AllureRSpec::Adaptor
- Defined in:
- lib/allure-rspec/adaptor.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/allure-rspec/adaptor.rb', line 3 def self.included(base) AllureRSpec.context.rspec = base base.send :include, AllureRSpec::DSL if RSpec.configuration.formatters.find_all { |f| f.is_a?(AllureRSpec::Formatter) }.empty? RSpec.configuration.add_formatter(AllureRSpec::Formatter) end RSpec::Core::ExampleGroup.send :include, AllureRSpec::Hooks end |