diff --git a/lib/fog/rackspace/monitoring.rb b/lib/fog/rackspace/monitoring.rb index 6e762b58e..a0645a49f 100644 --- a/lib/fog/rackspace/monitoring.rb +++ b/lib/fog/rackspace/monitoring.rb @@ -77,6 +77,10 @@ module Fog class Mock < Fog::Rackspace::Service + + def initialize(options={}) + end + def request(params) Fog::Mock.not_implemented end diff --git a/tests/rackspace/models/monitoring/alarm_examples_tests.rb b/tests/rackspace/models/monitoring/alarm_examples_tests.rb index ec2291e80..1e3e4b5fa 100644 --- a/tests/rackspace/models/monitoring/alarm_examples_tests.rb +++ b/tests/rackspace/models/monitoring/alarm_examples_tests.rb @@ -1,5 +1,5 @@ Shindo.tests('Fog::Rackspace::Monitoring | alarm_examples', ['rackspace','rackspace_monitoring']) do - pending if Fog.mocking? && !mocks_implemented + pending if Fog.mocking? service = Fog::Rackspace::Monitoring.new alarm_example_id = 'remote.http_body_match_1'