lib/rspec-virtus/matcher.rb in rspec-virtus-1.0.1 vs lib/rspec-virtus/matcher.rb in rspec-virtus-1.0.2
- old
+ new
@@ -42,10 +42,10 @@
def attribute_type
attribute.primitive
end
def attribute_exists?
- attribute != nil
+ !attribute.nil?
end
def type_correct?
if @options[:member_type]
member_type == @options[:member_type] && attribute_type == @options[:type]