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