Merbies:

When I generate a controller with option -T, I get a nice "functional" test 
suite (meaning a suite that mocks a controller and a web server):

class GrepperTest < Test::Unit::TestCase

  def setup
    @controller = Grepper.build(fake_request)
    @controller.dispatch('index')
  end

  # Replace this with your real tests.
  def test_should_be_setup
    assert false
  end
end

However, 'rake test' does not mind the 'assert false' there. 'rake 
test:functionals' does not exist, and 'ruby test/functional/grepper_test.rb' 
produces "no such file to load -- test/functional/../test_helper".

Copying one in from 
'app_generators/merb_plugin/templates/test/test_helper.rb' leads to 
"uninitialized constant Test"

Should I just be entering these issues into a do-list somewhere? I'm only 
using generated code, so the odds of pilot error are kind'a low...

-- 
  Phlip 



_______________________________________________
Merb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/merb-devel

Reply via email to