Skip to content

Instantly share code, notes, and snippets.

@jferris
Created November 16, 2009 21:11
Show Gist options
  • Save jferris/236315 to your computer and use it in GitHub Desktop.
Save jferris/236315 to your computer and use it in GitHub Desktop.
class Test::Unit::TestCase
def self.should_should_belong_to(association)
should "should belong to #{association}" do
assert instance_methods.include?("should belong to #{association}")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment