Module: RSpecRcv

Extended by:
RSpecRcv
Included in:
RSpecRcv
Defined in:
lib/rspec-rcv.rb,
lib/rspec-rcv/handler.rb,
lib/rspec-rcv/version.rb,
lib/rspec-rcv/codecs/yaml.rb,
lib/rspec-rcv/configuration.rb,
lib/rspec-rcv/codecs/pretty_json.rb,
lib/rspec-rcv/data_changed_error.rb,
lib/rspec-rcv/helpers/deep_except.rb,
lib/rspec-rcv/test_frameworks/rspec.rb

Defined Under Namespace

Modules: Codecs, Helpers, RSpec Classes: Configuration, Handler

Constant Summary collapse

VERSION =
"0.3.2"
DataChangedError =
Class.new(StandardError)

Instance Method Summary collapse

Instance Method Details

#config(overrides = nil) ⇒ Object



29
30
31
# File 'lib/rspec-rcv.rb', line 29

def config(overrides=nil)
  configuration.opts(overrides)
end

#configurationObject



25
26
27
# File 'lib/rspec-rcv.rb', line 25

def configuration
  @configuration ||= Configuration.new
end

#configure {|configuration| ... } ⇒ Object

Yields:



21
22
23
# File 'lib/rspec-rcv.rb', line 21

def configure
  yield configuration
end