Sha256: 2e0854773e98ba302c618638744027a153eb5cbca213e1cf8df590d443def118

Contents?: true

Size: 589 Bytes

Versions: 12

Compression:

Stored size: 589 Bytes

Contents

require 'bandiera/client'
require 'pugin/bandiera'

module Parliament
  module Utils
    module TestHelpers
      module BandieraHelper
        def self.load_rspec_config(config)
          # Stubs Bandiera::Client methods enabled? and get_features_for_group to clean up logs
          # and streamline cassettes
          config.before(:each) do
            allow(BANDIERA_CLIENT).to receive(:enabled?).and_return(false)
            allow(Pugin::PuginBandieraClient::BANDIERA_CLIENT).to receive(:get_features_for_group).and_return({})
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
parliament-utils-0.11.3 lib/parliament/utils/test_helpers/bandiera_helper.rb
parliament-utils-0.11.2 lib/parliament/utils/test_helpers/bandiera_helper.rb
parliament-utils-0.11.1 lib/parliament/utils/test_helpers/bandiera_helper.rb
parliament-utils-0.11.0 lib/parliament/utils/test_helpers/bandiera_helper.rb
parliament-utils-0.10.2 lib/parliament/utils/test_helpers/bandiera_helper.rb
parliament-utils-0.10.1 lib/parliament/utils/test_helpers/bandiera_helper.rb
parliament-utils-0.10.0 lib/parliament/utils/test_helpers/bandiera_helper.rb
parliament-utils-0.9.1 lib/parliament/utils/test_helpers/bandiera_helper.rb
parliament-utils-0.9.0 lib/parliament/utils/test_helpers/bandiera_helper.rb
parliament-utils-0.8.7 lib/parliament/utils/test_helpers/bandiera_helper.rb
parliament-utils-0.8.6 lib/parliament/utils/test_helpers/bandiera_helper.rb
parliament-utils-0.8.5 lib/parliament/utils/test_helpers/bandiera_helper.rb