summaryrefslogtreecommitdiff
path: root/spec/support/matchers/is_within.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/matchers/is_within.rb')
-rw-r--r--spec/support/matchers/is_within.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/spec/support/matchers/is_within.rb b/spec/support/matchers/is_within.rb
deleted file mode 100644
index 0c35fc7e899..00000000000
--- a/spec/support/matchers/is_within.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-# Extend shoulda-matchers
-module Shoulda::Matchers::ActiveModel
- class ValidateLengthOfMatcher
- # Shortcut for is_at_least and is_at_most
- def is_within(range)
- is_at_least(range.min) && is_at_most(range.max)
- end
- end
-end