assert_difference and Rails 2.1.0

Email this to someoneShare on Google+Share on FacebookTweet about this on TwitterShare on LinkedIn

Trying to use the assert_difference with Rails 2.1.0 produces errors if trying to use it with the syntax of another rails version.

The correct syntax for using assert_difference with rails 2.1.0 is: