Displaying 1 result from an estimated 1 matches for "class_to_test".
2006 Mar 07
3
STI and unit testing
...< Foo
13
14 def say_hello
15 "hello"
16 end
17
18 end
19
20 # Test case for model Foo
21 require File.dirname(__FILE__) + ''/../test_helper''
22
23 class FooTest < Test::Unit::TestCase
24 fixtures :foos
25
26 def class_to_test
27 Foo
28 end
29
30 def test_say_hi
31 assert_equal "hi", class_to_test.new.say_hi
32
33 # debug
34 puts class_to_test
35 # end
36 end
37
38 end
39
40 # test case for model Bar, saved in bar_test.rb
41 #require File.di...