Module: ExpectationSerializer

Included in:
ActionDispatch::Assertions::ResponseAssertions, Shoulda::ActionMailer::Assertions
Defined in:
lib/expectation_serializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#batchObject

Returns the value of attribute batch.



2
3
4
# File 'lib/expectation_serializer.rb', line 2

def batch
  @batch
end

#outputObject

Returns the value of attribute output.



2
3
4
# File 'lib/expectation_serializer.rb', line 2

def output
  @output
end

Instance Method Details

#expected_response_rootObject



10
11
12
# File 'lib/expectation_serializer.rb', line 10

def expected_response_root
  "#{Rails.root}/tmp"
end

#file_pathObject



3
4
5
6
7
8
9
# File 'lib/expectation_serializer.rb', line 3

def file_path
  if respond_to? 'delegate'
    delegate.class.to_s.split('::').join('/')
  else
    self.class.to_s.split('::').join('/')
  end
end

#meth_nameObject



13
14
15
16
17
18
19
# File 'lib/expectation_serializer.rb', line 13

def meth_name
  if respond_to? 'delegate'
    delegate.method_name
  else
    method_name
  end
end