Comments and changes to this ticket
-
webmat March 8th, 2008 @ 03:50 AM
Note that I tried that on the 0.9.1 developer gem as well as on a gem created from source
(commit d58d7ed55ab2363c93c5e12c40a75f7e5e54f595, the merge from 2008-03-07 01:11:16)
-
Ezra Zygmuntowicz March 25th, 2008 @ 02:52 AM
- → State changed from new to open
does someone who uses test_unit want to make a patch for this?
-

-
webmat March 27th, 2008 @ 02:41 PM
As suggested in #71, I added merb_test_unit, which added rake tasks for Test::Unit.
However, even after generating a new model, the test_helper is not created. So the test_unit task fails because the auto-generated unit test depends on test/test_helper.
I even started another dummy project from scratch, immediately set up "use_test :test_unit" and "require 'merb_test_unit'", then generated a controller and a model and the helper was not created.
-
Michael Klishin (antares) May 11th, 2008 @ 03:23 PM
- → Milestone changed from to 1.0
-
Paul Legato July 2nd, 2008 @ 05:16 AM
- → Tag changed from to bug generator merb_test_unit
The following test_helper.rb works for me. I didn't make a patch because I'm not sure where to put it in the codebase so that it's auto-generated while not clobbering an existing test_helper.rb.
require 'rubygems' require 'merb-core' Merb.start_environment(:testing => true, :adapter => 'runner', :environment => ENV['MERB_ENV'] || 'test') gem 'merb_test_unit' require 'merb_test_unit' -
Michael Klishin (antares) September 6th, 2008 @ 01:21 PM
- → Assigned user changed from to Michael Klishin (antares)
-
Michael Klishin (antares) October 5th, 2008 @ 06:00 PM
- → State changed from open to resolved
test/test_unit is now generated, I just triple checked it. I am not sure if it is really what it should look like but it's because I do not use Test::Unit myself and I could not find anyone who does on the IRC.
Let me know how we should change it.
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 »
