Sha256: 93f686b09ad9d5b9a1b7be4cd092ce6f9a01f01a60f31dfaf2d6259fe137bc23
Contents?: true
Size: 741 Bytes
Versions: 13
Compression:
Stored size: 741 Bytes
Contents
#!/usr/bin/env ruby #--- # Copyright 2003-2012 by Jim Weirich (jim.weirich@gmail.com). # 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/test_setup" 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
13 entries across 13 versions & 1 rubygems