merb-gen ... -T creates broken unit tests
Reported by Phlip | March 29th, 2008 @ 11:49 PM | in 1.0 (Nearish Future)
http://rubyforge.org/pipermail/m...
excerpt:
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"
Comments and changes to this ticket
-
Michael Klishin (antares) May 11th, 2008 @ 07:49 AM
- → Milestone changed from to 1.0 (Nearish Future)
- → State changed from new to open
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
