Current Path : /usr/lib/ruby/gems/3.0.0/gems/test-unit-3.3.7/sample/ |
Current File : //usr/lib/ruby/gems/3.0.0/gems/test-unit-3.3.7/sample/test_user.rb |
# nested test case example. require 'test/unit' class UserTest < Test::Unit::TestCase def setup @user = "me" end def test_full_name assert_equal("me", @user) end class ProfileTest < UserTest setup def setup_profile @user += ": profile" end def test_has_profile assert_match(/: profile/, @user) end end end