lib/larva/mocker.rb in larva-0.9.2 vs lib/larva/mocker.rb in larva-1.0.0
- old
+ new
@@ -2,20 +2,13 @@
class Mocker
def self.mock!
Filum.setup('./log/test.log')
Propono::Publisher.any_instance.stubs(:publish_via_sns)
- if const_defined?("MeducationSDK")
- MeducationSDK.config do |config|
- config.endpoint = "http://localhost:3000/spi"
- config.access_id = "Daemon"
- config.secret_key = "foobar"
- config.logger = Filum.logger
- end
- end
-
Propono.config do |config|
config.logger = Filum.logger
end
+
+ after_mock if respond_to?(:after_mock)
end
end
end