2008-09-20 7 views

Répondre

5

Essayez ceci:

def test_that_foo_helper_defines_bar 
    o = Object.new 
    assert !o.respond_to? :bar 
    o.extend FooHelper 
    assert o.respond_to? :bar 
end 
+0

Fantastique! Merci pour l'aide. – Sixty4Bit

Questions connexes