Module: Parliament::Utils::TestHelpers::BandieraHelper

Included in:
Parliament::Utils::TestHelpers
Defined in:
lib/parliament/utils/test_helpers/bandiera_helper.rb

Class Method Summary collapse

Class Method Details

.load_rspec_config(config) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/parliament/utils/test_helpers/bandiera_helper.rb', line 8

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