Hi, I have just created my first ever plugin and would like to write some test''s for it, any suggestions on where to start would be great. I have this code in my site_test.rb file require ''test/unit'' require File.dirname(__FILE__) + ''/../lib/site'' class SiteTest < Test::Unit::TestCase include Site def test_getRegion end end which I belive relates to this method module Site def getRegion() oData = Data.new(@request.env) return oData.regionName end end I was thinking that it may be possible to test that somthing is always returned, how can this be done? Thanks, john -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---