Class: Rspec::RequestSnapshot::Handlers::Text

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

Instance Method Summary collapse

Methods inherited from Base

#dynamic_attributes, #initialize

Constructor Details

This class inherits a constructor from Rspec::RequestSnapshot::Handlers::Base

Instance Method Details

#comparable(str) ⇒ Object



6
7
8
# File 'lib/rspec/request_snapshot/handlers/text.rb', line 6

def comparable(str)
  str
end

#compare(actual, expected) ⇒ Object



2
3
4
# File 'lib/rspec/request_snapshot/handlers/text.rb', line 2

def compare(actual, expected)
  actual == expected
end

#writable(str) ⇒ Object



10
11
12
# File 'lib/rspec/request_snapshot/handlers/text.rb', line 10

def writable(str)
  str
end