require 'eymiha/test' class Foo def bar "bar" end def bass "bass" end private def frapp "frapp" end def mumble "mumble" end end class TC_test < Test::Unit::TestCase def test_bar foo = Foo.new probe(Foo,:bar) do assert(foo.bar == "bar") end end def test_bar_bass foo = Foo.new probe(Foo,:bar,:bass) do assert("#{foo.bar}_#{foo.bass}" == "bar_bass") end end def test_frapp foo = Foo.new probe(Foo,:frapp) do assert(foo.frapp == "frapp") end end def test_frapp_and_mumble foo = Foo.new probe(Foo,:frapp,:mumble) do assert("#{foo.frapp}_#{foo.mumble}" == "frapp_mumble") end end def test_bar_frapp_mumble foo = Foo.new probe(Foo,[:bar,:frapp],:mumble) do assert("#{foo.bar}_#{foo.frapp}_#{foo.mumble}" == "bar_frapp_mumble") end end end