[Rails-core] Clean Functional Tests

2006-08-17 Thread Keith Morrison
stInjector has to be explicitly enabled by you. Comments, questions, suggestions? Cheers, Keith Morrison ___ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core

Re: [Rails-core] Clean Functional Tests

2006-08-18 Thread Keith Morrison
In that case, the plugin won't help you, but it won't hinder you either. Francois Beausoleil wrote: Hello Keith, 2006/8/17, Keith Morrison <[EMAIL PROTECTED]>: Comments, questions, suggestions? My tests are defined like this now: #

Re: [Rails-core] Clean Functional Tests

2006-08-18 Thread Keith Morrison
Not without even more magic. Test::Unit::TestCase has an inherited method that tries to build a test suite from any test_* methods in the subclass. Executing this code: require 'test/unit' class FunctionalTest < Test::Unit::TestCase; end Produces: 1) Failure: default_test:2 No tests were sp

Re: [Rails-core] Clean Functional Tests

2006-08-18 Thread Keith Morrison
Rails does a great job of inferring a lot of things based on names, so it seems like a good fit to me. class User < ActiveRecord::Base has_many :assignments end From this class declaration, Rails infers that there is an Assignment model that contains the foreign key user_id. Isn't this the