Class: Transpec::Syntax::Receive::AnyInstanceBlockRecordBuilder

Inherits:
Mixin::AnyInstanceBlock::RecordBuilder show all
Defined in:
lib/transpec/syntax/receive.rb

Instance Attribute Summary

Attributes inherited from Mixin::AnyInstanceBlock::RecordBuilder

#host

Instance Method Summary collapse

Methods inherited from Mixin::AnyInstanceBlock::RecordBuilder

#initialize, #new_syntax, #old_syntax

Methods inherited from RecordBuilder

build, #build

Constructor Details

This class inherits a constructor from Transpec::Syntax::Mixin::AnyInstanceBlock::RecordBuilder

Instance Method Details

#base_syntax ⇒ Object



45
46
47
# File 'lib/transpec/syntax/receive.rb', line 45

def base_syntax
  "#{host.expectation.method_name}(Klass).to receive(:message)"
end