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.
- Failure:
test_fixtures(UserTest) [fixture_test.rb:8]:
expected to not be nil.
1 tests, 1 assertions, 1 failures, 0 errors