Class: Transpec::Syntax::OnelinerShould::OnelinerShouldHaveRecord

Inherits:
Have::HaveRecord show all
Defined in:
lib/transpec/syntax/oneliner_should.rb

Constant Summary

Constants inherited from Record

Record::OVERRIDE_FORBIDDEN_METHODS

Instance Attribute Summary collapse

Attributes inherited from Have::HaveRecord

#have

Attributes inherited from Record

#annotation, #converted_syntax_type, #original_syntax_type

Instance Method Summary collapse

Methods inherited from Have::HaveRecord

#annotation

Methods inherited from Record

#==, #converted_syntax, #hash, #original_syntax, #to_s

Constructor Details

#initialize(should, have, negative_form_of_to = nil) ⇒ OnelinerShouldHaveRecord

Returns a new instance of OnelinerShouldHaveRecord.



155
156
157
158
159
# File 'lib/transpec/syntax/oneliner_should.rb', line 155

def initialize(should, have, negative_form_of_to = nil)
  super(have)
  @should = should
  @negative_form_of_to = negative_form_of_to
end

Instance Attribute Details

#negative_form_of_to ⇒ Object (readonly)

Returns the value of attribute negative_form_of_to.



153
154
155
# File 'lib/transpec/syntax/oneliner_should.rb', line 153

def negative_form_of_to
  @negative_form_of_to
end

#should ⇒ Object (readonly)

Returns the value of attribute should.



153
154
155
# File 'lib/transpec/syntax/oneliner_should.rb', line 153

def should
  @should
end