Displaying 1 result from an estimated 1 matches for "taxgrouptest".
2006 Apr 16
5
Newbie Problems with pluralization
...tax with the following declaration:
has_and_belongs_to_many :tax_groups
and I have a model named tax_group with the following declaration:
has_and_belongs_to_many :taxes
I am attempting to run the following unit test:
require File.dirname(__FILE__) + ''/../test_helper''
class TaxGroupTest < Test::Unit::TestCase
fixtures :taxes, :tax_groups, :taxes_tax_groups
# Replace this with your real tests.
def setup
@taxgroup = TaxGroup.find(1)
end
# Replace this with your real tests.
def test_create
assert_equal 1, @taxgroup.id
assert_equal "Ontario", @ta...