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 File.dirname(FILE) + ‘/…/lib/site’
class SiteTest < Test::Unit::TestCase
def test_getRegion end
which I belive relates to this method
oData = Data.new(@request.env)
I was thinking that it may be possible to test that somthing is always
returned, how can this be done?