features/steps/notifications_steps.rb in flapjack-0.7.27 vs features/steps/notifications_steps.rb in flapjack-0.7.28
- old
+ new
@@ -134,21 +134,21 @@
# NB using perform, the notifiers were accessing the wrong Redis DB number
# TODO may need to get more complex, depending which SMS provider is used
When /^the SMS notification handler runs successfully$/ do
- @request = stub_request(:get, /^#{Regexp.escape(Flapjack::Gateways::SmsMessagenet::MESSAGENET_URL)}/)
+ @request = stub_request(:get, /^#{Regexp.escape(Flapjack::Gateways::SmsMessagenet::MESSAGENET_DEFAULT_URL)}/)
Flapjack::Gateways::SmsMessagenet.instance_variable_set('@config', {'username' => 'abcd', 'password' => 'efgh'})
Flapjack::Gateways::SmsMessagenet.instance_variable_set('@redis', @redis)
Flapjack::Gateways::SmsMessagenet.instance_variable_set('@logger', @logger)
Flapjack::Gateways::SmsMessagenet.start
Flapjack::Gateways::SmsMessagenet.perform(@sms_notification)
end
When /^the SMS notification handler fails to send an SMS$/ do
- @request = stub_request(:get, /^#{Regexp.escape(Flapjack::Gateways::SmsMessagenet::MESSAGENET_URL)}/).to_return(:status => [500, "Internal Server Error"])
+ @request = stub_request(:get, /^#{Regexp.escape(Flapjack::Gateways::SmsMessagenet::MESSAGENET_DEFAULT_URL)}/).to_return(:status => [500, "Internal Server Error"])
Flapjack::Gateways::SmsMessagenet.instance_variable_set('@config', {'username' => 'abcd', 'password' => 'efgh'})
Flapjack::Gateways::SmsMessagenet.instance_variable_set('@redis', @redis)
Flapjack::Gateways::SmsMessagenet.instance_variable_set('@logger', @logger)
Flapjack::Gateways::SmsMessagenet.start