class TestUnitFixture

Private Instance Methods

assert_called_fixtures(expected, test_case) click to toggle source
# File test-unit-3.3.4/test/test-fixture.rb, line 692
def assert_called_fixtures(expected, test_case)
  test = run_test_nothing(test_case)
  assert_equal(expected, test.called_ids)
end
assert_invalid_option(fixture_type, option) click to toggle source
# File test-unit-3.3.4/test/test-fixture.rb, line 697
def assert_invalid_option(fixture_type, option)
  exception = assert_raise(ArgumentError) do
    Class.new(Test::Unit::TestCase) do
      def test_nothing
      end

      send(fixture_type, option)
      def fixture
      end
    end
  end
  assert_equal("must be {:before => :prepend}, {:before => :append}, " +
               "{:after => :prepend} or {:after => :append}" +
               ": #{option.inspect}",
               exception.message)
end
fixture() click to toggle source
# File test-unit-3.3.4/test/test-fixture.rb, line 704
def fixture
end
run_test_nothing(test_case) click to toggle source
# File test-unit-3.3.4/test/test-fixture.rb, line 686
def run_test_nothing(test_case)
  test = test_case.new("test_nothing")
  test.run(Test::Unit::TestResult.new) {}
  test
end
test_nothing() click to toggle source
# File test-unit-3.3.4/test/test-fixture.rb, line 700
def test_nothing
end