Module: Virtus::Matchers

Defined in:
lib/virtus/matchers/version.rb,
lib/virtus/matchers/have_attribute_matcher.rb,
lib/virtus/matchers/be_value_object_matcher.rb

Defined Under Namespace

Classes: BeAValueObjectMatcher, HaveAttributeMatcher

Constant Summary collapse

VERSION =
'0.2.1'.freeze

Instance Method Summary collapse

Instance Method Details

#be_value_objectObject Also known as: be_a_value_object



20
21
22
# File 'lib/virtus/matchers/be_value_object_matcher.rb', line 20

def be_value_object
  BeAValueObjectMatcher.new
end

#have_attribute(name, type = nil) ⇒ Object



54
55
56
# File 'lib/virtus/matchers/have_attribute_matcher.rb', line 54

def have_attribute(name, type = nil)
  HaveAttributeMatcher.new(name, type)
end