Class: Rspec::RequestSnapshot::Handlers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/request_snapshot/handlers/base.rb

Direct Known Subclasses

JSON, Text

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



3
4
5
# File 'lib/rspec/request_snapshot/handlers/base.rb', line 3

def initialize(options = {})
  @options = options
end

Instance Method Details

#dynamic_attributesObject



7
8
9
10
# File 'lib/rspec/request_snapshot/handlers/base.rb', line 7

def dynamic_attributes
  @dynamic_attributes ||= RSpec.configuration.request_snapshots_dynamic_attributes |
                          Array(@options[:dynamic_attributes])
end