Permalink
Browse files

added tests for symbol and string callbacks for validations

git-svn-id: https://svn.thoughtbot.com/plugins/when/trunk@322 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
  • Loading branch information...
1 parent f32f021 commit 88ffb73883fee2bdec5ae36a92ecc21398e1eb25 jcarroll committed Feb 13, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/validations_test.rb
View
2 test/validations_test.rb
@@ -9,7 +9,7 @@ def setup
basic_validations = %w(validate validate_on_create)
update_validations = %w(validate_on_update)
- conditions = [lambda {|company| company.callback_flag == true}]
+ conditions = [lambda {|company| company.callback_flag == true}, :flag?, 'flag?']
conditions.each do |condition|
basic_validations.each do |validation|

0 comments on commit 88ffb73

Please sign in to comment.