Sha256: 927eb01491eebb6020f15460768f63b43d2d821a048d10259a1760e3a426d095

Contents?: true

Size: 370 Bytes

Versions: 2

Compression:

Stored size: 370 Bytes

Contents

require "ostruct"
require "albacore/support/openstruct"

module Configuration
  module SpecFlow
    include Albacore::Configuration

    def self.specflowconfig
      @config ||= OpenStruct.new.extend(OpenStructToHash).extend(SpecFlow)
    end

    def specflow
      config ||= SpecFlow.specflowconfig
      yield(config) if block_given?
      config
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-1.0.0 lib/albacore/config/specflowconfig.rb
albacore-1.0.0.rc.3 lib/albacore/config/specflowconfig.rb