Sha256: 783412e1cafadf4b15d0744aae10ae592a0b41a11f912b38936bd2d73c58de38
Contents?: true
Size: 669 Bytes
Versions: 19
Compression:
Stored size: 669 Bytes
Contents
require File.join(File.dirname(__FILE__), "acceptance_test_helper") require 'mocha' class Bug21563Test < Test::Unit::TestCase include AcceptanceTest def setup setup_acceptance_test end def teardown teardown_acceptance_test end def test_should_allow_expected_method_name_to_be_a_string test_result = run_test do mock = mock() mock.expects('wibble') mock.wibble end assert_passed(test_result) end def test_should_allow_stubbed_method_name_to_be_a_string test_result = run_test do mock = mock() mock.stubs('wibble') mock.wibble end assert_passed(test_result) end end
Version data entries
19 entries across 19 versions & 3 rubygems