search for: distributiontest

Displaying 1 result from an estimated 1 matches for "distributiontest".

Did you mean: distribution_test
2008 Jul 17
2
problems with validation on STI
...4 @d1.dist_name = ''dist1'' puts @d1.to_s assert @d1.valid? end The final line "assert @d1.valid?" fails, even though I have a :desc field that is properly spelled, a numerical :param1, and a unique :dist_name. The message is: 1) Failure: test_params_exp(DistributionTest) [test/unit/distribution_test.rb:35:in `test_params_exp'' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/testi ng/setup_and_teardown.rb:33:in `__send__'' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/testi ng/setup_and_tea...