Sha256: e069e934edf4acdc346860c3719f9761872349b8c95e6924be1954e043c8e9b7

Contents?: true

Size: 403 Bytes

Versions: 6

Compression:

Stored size: 403 Bytes

Contents

module AllureRSpec
  module Adaptor
    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
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
allure-rspec-0.5.4 lib/allure-rspec/adaptor.rb
allure-rspec-0.5.3 lib/allure-rspec/adaptor.rb
allure-rspec-0.5.2 lib/allure-rspec/adaptor.rb
allure-rspec-0.5.1 lib/allure-rspec/adaptor.rb
allure-rspec-0.5.0 lib/allure-rspec/adaptor.rb
allure-rspec-0.4.2 lib/allure-rspec/adaptor.rb