Commit 72b75b659f65087263e2440133f87ca44ef49776

Authored by Douglas F Shearer
1 parent a2e707c5

Added test to make sure the method missing magic raises if no match is found.

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
test/acts_as_follower_test.rb
... ... @@ -71,4 +71,8 @@ class ActsAsFollowerTest < Test::Unit::TestCase
71 71 assert_equal [users(:jon)], users(:sam).following_users
72 72 end
73 73  
  74 + def test_method_missing_should_raise
  75 + assert_raises (NoMethodError){ users(:sam).foobar }
  76 + end
  77 +
74 78 end
... ...