As an addendum to that mailing list post, I get this output:
Loaded suite test/unit/test_shoulda_test
Started
inside setup
inside test
inside teardown
.
Finished in 0.069689 seconds.
1 tests, 1 assertions, 0 failures, 0 errors
... when I run this code:
require File.join( File.dirname(__FILE__), '..', 'test_helper' )
require 'test/unit'
require 'flexmock/test_unit'
class TestTest < Test::Unit::TestCase
context "This test" do
setup do
$stderr.puts "inside setup"
end
teardown do
$stderr.puts "inside teardown"
end
should "pass" do
$stderr.puts "inside test"
assert true
end
end
end
Thanks shoulda!
No comments:
Post a Comment