Current Path : /proc/3/cwd/opt/puppetlabs/puppet/lib/ruby/gems/2.5.0/gems/test-unit-3.2.7/sample/ |
Current File : //proc/3/cwd/opt/puppetlabs/puppet/lib/ruby/gems/2.5.0/gems/test-unit-3.2.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