Skip to content

Commit

Permalink
fix typo in callbacks test
Browse files Browse the repository at this point in the history
  • Loading branch information
accessd committed Jul 24, 2012
1 parent 14a1df1 commit f35f6ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activemodel/test/cases/validations/callbacks_test.rb
Expand Up @@ -20,7 +20,7 @@ def set_before_validation_marker; self.history << 'before_validation_marker'; en
def set_after_validation_marker; self.history << 'after_validation_marker' ; end def set_after_validation_marker; self.history << 'after_validation_marker' ; end
end end


class DogValidtorsAreProc < Dog class DogValidatorsAreProc < Dog
before_validation { self.history << 'before_validation_marker' } before_validation { self.history << 'before_validation_marker' }
after_validation { self.history << 'after_validation_marker' } after_validation { self.history << 'after_validation_marker' }
end end
Expand Down Expand Up @@ -49,7 +49,7 @@ def test_before_validation_and_after_validation_callbacks_should_be_called
end end


def test_before_validation_and_after_validation_callbacks_should_be_called_with_proc def test_before_validation_and_after_validation_callbacks_should_be_called_with_proc
d = DogValidtorsAreProc.new d = DogValidatorsAreProc.new
d.valid? d.valid?
assert_equal ['before_validation_marker', 'after_validation_marker'], d.history assert_equal ['before_validation_marker', 'after_validation_marker'], d.history
end end
Expand Down

0 comments on commit f35f6ab

Please sign in to comment.