Sha256: 05109a1c30e9dc9860000afed915d9d8e8f4a05779fcb1aecb1cb8b97f8ef678
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
#!/usr/bin/env ruby require 'test/unit' require 'flexmock' class TestTuIntegrationMockVerificationInTeardown < Test::Unit::TestCase include FlexMock::TestCase def setup super end def teardown assert_raise(Test::Unit::AssertionFailedError) do super end end def test_mock_verification_occurs_during_teardown flexmock("xyz").should_receive(:hi).with(any).once end end class TestTuIntegrationMockVerificationWithoutSetup < Test::Unit::TestCase include FlexMock::TestCase def teardown assert_raise(Test::Unit::AssertionFailedError) do super end end def test_mock_verification_occurs_during_teardown flexmock("xyz").should_receive(:hi).with(any).once end end class TestTuIntegrationMockVerificationForgetfulSetup < Test::Unit::TestCase include FlexMock::TestCase def setup end def teardown assert_raise(Test::Unit::AssertionFailedError) do super end end def test_mock_verification_occurs_during_teardown flexmock("xyz").should_receive(:hi).with(any).once end end class TestTuIntegrationSetupOverridenAndNoMocksOk < Test::Unit::TestCase include FlexMock::TestCase def setup end def test_mock_verification_occurs_during_teardown end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flexmock-0.3.0 | test/test_tu_integration.rb |