Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'test/unit'
- class Dog
- def self.bark
- "woof!"
- end
- end
- class DogTest < Test::Unit::TestCase
- def test_bark
- assert_equal('woof!', Dog.bark)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement