Sha256: a50e1110f6a9bd448ae742aa251f7ca5f2615133d513827a3edba3266441c9e5

Contents?: true

Size: 475 Bytes

Versions: 6

Compression:

Stored size: 475 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
  
  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

6 entries across 6 versions & 2 rubygems

Version Path
francois-context-0.5.2.1 test/test_test.rb
jeremymcanally-context-0.0.3 test/test_test.rb
jeremymcanally-context-0.0.5 test/test_test.rb
jeremymcanally-context-0.0.6 test/test_test.rb
jeremymcanally-context-0.5.2 test/test_test.rb
jeremymcanally-context-0.5 test/test_test.rb