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, method_added, #original_syntax, #to_s

Constructor Details

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

Returns a new instance of OnelinerShouldHaveRecord.



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

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.



162
163
164
# File 'lib/transpec/syntax/oneliner_should.rb', line 162

def negative_form_of_to
  @negative_form_of_to
end

#shouldObject (readonly)

Returns the value of attribute should.



162
163
164
# File 'lib/transpec/syntax/oneliner_should.rb', line 162

def should
  @should
end