spec/lib/flapjack/gateways/api_spec.rb in flapjack-0.6.53 vs spec/lib/flapjack/gateways/api_spec.rb in flapjack-0.6.54
- old
+ new
@@ -1,9 +1,9 @@
require 'spec_helper'
require 'flapjack/gateways/api'
-describe 'Flapjack::Gateways::API', :sinatra => true do
+describe 'Flapjack::Gateways::API', :sinatra => true, :logger => true do
def app
Flapjack::Gateways::API
end
@@ -19,10 +19,12 @@
let(:redis) { mock(::Redis) }
before(:each) do
Flapjack::RedisPool.should_receive(:new).and_return(redis)
- Flapjack::Gateways::API.bootstrap(:config => {})
+ Flapjack::Gateways::API.instance_variable_set('@config', {})
+ Flapjack::Gateways::API.instance_variable_set('@logger', @logger)
+ Flapjack::Gateways::API.start
end
it "returns a list of checks for an entity" do
check_list = ['ping']
entity.should_receive(:check_list).and_return(check_list)