using a constant in both unit tests and in fixtures

I create a number of users in a database through a fixture. I then run a unit test to verify that the number of users in the database is correct. I want to make this number a constant that is only defined in one place. I currently have it defined in ./test/test_helper.rb which works fine for the unit test, but the fixture cannot see it. I’ve tried to "require ‘…/test_helper.rb’ " from inside the fixture to no avail.

Any ideas?

You can put it in a file in lib/ and then require that file from both
your test and your fixture file.