Anons79 Mini Shell

Directory : /opt/puppetlabs/puppet/lib/ruby/gems/2.5.0/gems/test-unit-3.2.7/sample/
Upload File :
Current File : //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

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]