Sha256: 1be74875d62bd93687c052a3c966c6ca87db8f077d04a525cff24852732fd9a2
Contents?: true
Size: 618 Bytes
Versions: 2
Compression:
Stored size: 618 Bytes
Contents
require File.dirname(__FILE__) + '/../active_record_unit' require "action_controller/test_case" class ActionController::TestCase self.fixture_path = File.dirname(__FILE__) + '/../fixtures' self.use_transactional_fixtures = false end class DeveloperController < ActionController::Base end class DeveloperControllerTest < ActionController::TestCase fixtures :developers def setup @david = developers(:david) end def test_should_have_loaded_fixtures assert_kind_of(Developer, @david) assert_kind_of(Developer, developers(:jamis)) assert_equal(@developers.size, Developer.count) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
actionpack-2.0.4 | test/activerecord/fixtures_test.rb |
actionpack-2.0.5 | test/activerecord/fixtures_test.rb |