File Manager

Current Path : /usr/lib/ruby/gems/3.0.0/gems/test-unit-3.3.7/sample/
Upload File :
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

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com