lib/rspec-virtus/matcher.rb in rspec-virtus-0.2.0 vs lib/rspec-virtus/matcher.rb in rspec-virtus-1.0.0
- old
+ new
@@ -30,14 +30,14 @@
def attribute
@subject.attribute_set[@attribute_name]
end
def member_type
- attribute.options[:member_type]
+ attribute.member_type.primitive
end
def attribute_type
- attribute.options[:primitive]
+ attribute.primitive
end
def attribute_exists?
attribute != nil
end