lib/dm/matchers/have_errors_on.rb in dm-rspec-0.0.1 vs lib/dm/matchers/have_errors_on.rb in dm-rspec-0.0.2

- old
+ new

@@ -24,11 +24,15 @@ "has errors on #{@property}" end end def have_errors_on(property) + puts "dm-rspec: `have_errors_on` is deprecated. Please use `have(n).errors_on` instead" HaveErrorsOn.new(property) end - alias :have_error_on :have_errors_on + def have_error_on(property) + puts "dm-rspec: `have_error_on` is deprecated. Please use `have(1).error_on` instead" + HaveErrorsOn.new(property) + end end end