Permalink
Browse files

Add a test passing mixed values to `allow_value`

  • Loading branch information...
mxie committed Mar 28, 2013
1 parent 0209b3e commit 7e11f3e1d1c2adb144cfcdcc4bc551156a34b990
Showing with 4 additions and 0 deletions.
  1. +4 −0 spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb
@@ -80,6 +80,10 @@
it "rejects several bad values (#{bad_values.map(&:inspect).join(', ')})" do
model.should_not allow_value(*bad_values).for(:attr)
end
+
+ it "rejects a mix of both good and bad values" do
+ model.should_not allow_value('12345', *bad_values).for(:attr)
+ end
end
context 'with a single value' do

0 comments on commit 7e11f3e

Please sign in to comment.