lib/dm/matchers/have_property.rb in dm-rspec2-0.2.1 vs lib/dm/matchers/have_property.rb in dm-rspec2-0.2.2
- old
+ new
@@ -7,10 +7,9 @@
match do |model|
@model_class = model.is_a?(Class) ? model : model.class
@has_property = @model_class.properties.map(&:name).include? property
@model_property = @model_class.properties.find{|f| f.name == property}
- puts @type
if @type
@has_property && @model_property.class == @type
else
@has_property
end