Bonjour,
how can i unit test the methods from my module App:helpers ?
 i'm new to ruby and to unit testing , english is not my mother tongue. All
that i know come from

http://en.wikibooks.org/wiki/Ruby_Programming/Unit_testing

and

M R . N E I G H B O R L Y ' S
HUMBLE LITTLE
RUBY BOOK

i 've tried this, but i don't know how to reference the  helpers in my app.

require 'test/unit'
require 'app.rb'  # this doesn't work

class Test_helpers < Test::Unit::TestCase
    def test_extraire_lieu
        assert_equal ("ici", App::Helpers.test_extraire_lieu({lieu=>"ici",
bla => 'xxx', ble => 'xxxx'}))
    end
end

thanks
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to