Sha256: 22a4e9d1d914674e7b91d93adf3512bfe6d744d1698062d612c043087b6de7bd

Contents?: true

Size: 597 Bytes

Versions: 7

Compression:

Stored size: 597 Bytes

Contents

module AllureTurnip
  module Adaptor
    def self.included(base)
      AllureTurnip.context.rspec = base
      base.send :include, AllureTurnip::DSL
      if RSpec::Core::Formatters::Loader.formatters.keys.find_all { |f| f == AllureTurnip::Formatter }.empty?
        RSpec::Core::Formatters.register AllureTurnip::Formatter, *AllureTurnip::Formatter::NOTIFICATIONS
        RSpec.configuration.add_formatter(AllureTurnip::Formatter)
      end
      RSpec::Core::ExampleGroup.send :include, AllureTurnip::Hooks
      RSpec::Core::Example.send :include, AllureTurnip::DSL::Example
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
allure_turnip-0.4.0 lib/allure_turnip/adaptor.rb
allure_turnip-0.3.1 lib/allure_turnip/adaptor.rb
allure_turnip-0.3.0 lib/allure_turnip/adaptor.rb
allure_turnip-0.2.1 lib/allure_turnip/adaptor.rb
allure_turnip-0.2.0 lib/allure_turnip/adaptor.rb
allure_turnip-0.1.1 lib/allure_turnip/adaptor.rb
allure_turnip-0.1.0 lib/allure_turnip/adaptor.rb