Sha256: 1e2dfa623c50e59de7dc0ab6ac09a22507ef889afc612ec98fbad14b1aba3874

Contents?: true

Size: 680 Bytes

Versions: 35

Compression:

Stored size: 680 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper.rb'

class TestTest < Test::Unit::TestCase
  def test_test_aliases
    [:test, :it, :should, :tests].each do |method_alias|
      assert self.class.respond_to?(method_alias)
    end
  end

  def test_before_test_aliases
    [:before_test, :before_it, :before_should, :before_tests].each do |method_alias|
      assert self.class.respond_to?(method_alias), method_alias.inspect
    end
  end
  
  context "A test block" do
    it "should create a test_xxx method" do
      self.class.test("should create a test method") { true }
      
      assert self.respond_to?("test: A test block should create a test method")
    end
  end
end

Version data entries

35 entries across 35 versions & 8 rubygems

Version Path
auser-poolparty-1.3.0 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.1 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.10 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.11 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.12 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.13 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.14 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.15 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.16 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.17 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.2 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.3 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.4 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.5 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.6 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.7 vendor/gems/context/test/test_test.rb
auser-poolparty-1.3.8 vendor/gems/context/test/test_test.rb
djsun-context-0.5.5 test/test_test.rb
djsun-context-0.5.6 test/test_test.rb
fairchild-poolparty-1.3.17 vendor/gems/context/test/test_test.rb