1 $:.push File.join(File.dirname(__FILE__), *%w[.. .. .. lib])
3 # TODO - this should not be necessary, ay?
4 require 'spec/interop/test'
6 describe "An Example" do
7 it "should pass with assert" do
11 it "should fail with assert" do
15 it "should pass with should" do
19 it "should fail with should" do
24 class ATest < Test::Unit::TestCase
25 def test_should_pass_with_assert
29 def test_should_fail_with_assert
33 def test_should_pass_with_should
37 def test_should_fail_with_should
46 def test_should_fail_with_setup_method_variable
47 @from_setup.should == 40
51 @from_before = @from_setup + 1
54 def test_should_fail_with_before_block_variable
55 @from_before.should == 50