I think I''m understanding fixtures, but apparently not, because this
should
work, according to this page -
http://manuals.rubyonrails.com/read/chapter/26#page67
Using Ubuntu 5.10, Ruby 1.8, current Rails
Any ideas?
File Edit Options Buffers Tools Help
require File.dirname(__FILE__) + ''/../test_helper''
class UserTest < Test::Unit::TestCase
fixtures :users
def test_fixtures
assert_not_nil @users
end
end
$ ruby fixture_test.rb
Loaded suite fixture_test
Started
F
Finished in 0.124553 seconds.
1) Failure:
test_fixtures(UserTest) [fixture_test.rb:8]:
<nil> expected to not be nil.
1 tests, 1 assertions, 1 failures, 0 errors
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails