Sha256: 722869af6e5de6145415605438268bbd962fb51e32811beb174a3b36639b9804
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
require 'service_mock/core_ext/string' require 'service_mock/version' require 'service_mock/command_line_options' require 'service_mock/server' require 'service_mock/render_subtemplate' require 'service_mock/stub_creator' require 'service_mock/rake/rake_tasks' # # ServiceMock is a Ruby gem that provides a wrapper over the [WireMock](http://wiremock.org) # library. The gem provides the ability to perform many actions on a WireMock instance # including starting, stopping, and several ways to stub out calls. It is highly # recommended that you take the time to read the WireMock documentation and understand #the how the library works. # # This gem can be used to help you virtualize services for your tests. For example, if you # are unable to achieve effective test data management with the backend systems you can # use this gem (with WireMock) to simulate (or mock) the services while controlling the # data that is returned. # # ServiceMock also provides two built-in rake task that can be used to start and stop an # instance of WireMock. The rake task need to be executed on the machine that the server # will run - there is no ability for remote start and stop. # module ServiceMock def self.working_directory @working_directory ||= 'config/mocks' end def self.working_directory=(value) @working_directory = value end def self.disable_stubs @disable_stubs ||= false end def self.disable_stubs=(value) @disable_stubs = value end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
service_mock-0.5.2 | lib/service_mock.rb |
service_mock-0.5.1 | lib/service_mock.rb |