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::OVERRIDDE_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.



166
167
168
169
170
# File 'lib/transpec/syntax/oneliner_should.rb', line 166

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_toObject (readonly)

Returns the value of attribute negative_form_of_to.



164
165
166
# File 'lib/transpec/syntax/oneliner_should.rb', line 164

def negative_form_of_to
  @negative_form_of_to
end

#shouldObject (readonly)

Returns the value of attribute should.



164
165
166
# File 'lib/transpec/syntax/oneliner_should.rb', line 164

def should
  @should
end