Sha256: 9014310bc17c842bb7389a27aaf7c9681d902ce5a9942b2e8623ab0545497801
Contents?: true
Size: 754 Bytes
Versions: 19
Compression:
Stored size: 754 Bytes
Contents
#!/usr/bin/env ruby #--- # Copyright 2003, 2004, 2005, 2006, 2007 by Jim Weirich (jim@weirichhouse.org). # All rights reserved. # Permission is granted for use, copying, modification, distribution, # and distribution of modified versions of this work as long as the # above copyright notice is included. #+++ require "test/unit" require "flexmock/base" require "flexmock/test_unit" class TestFlexmockTestUnit < Test::Unit::TestCase def teardown super end # This test should pass. def test_can_create_mocks m = flexmock("mock") m.should_receive(:hi).once m.hi end # This test should fail during teardown. def test_should_fail__mocks_are_auto_verified m = flexmock("mock") m.should_receive(:hi).once end end
Version data entries
19 entries across 19 versions & 1 rubygems