Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
apps that depend on active record should load fixtures
  • Loading branch information
tenderlove committed Apr 3, 2013
1 parent db924e1 commit 62a0803
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Expand Up @@ -6,12 +6,11 @@ class ActiveSupport::TestCase
<% unless options[:skip_active_record] -%>
ActiveRecord::Migration.check_pending!
# Uncomment the `fixtures :all` line below to setup all fixtures in test/fixtures/*.yml
# for all tests in alphabetical order.
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
#
# Note: You'll currently still have to declare fixtures explicitly in integration tests
# -- they do not yet inherit this setting
# fixtures :all
fixtures :all
<% end -%>
# Add more helper methods to be used by all tests here...
Expand Down
7 changes: 0 additions & 7 deletions railties/test/application/test_runner_test.rb
Expand Up @@ -184,13 +184,6 @@ def test_sanae
end
end

def test_not_load_fixtures_when_running_single_test
create_model_with_fixture
create_fixture_test :models, 'user'
assert_match "0 users", run_test_command('test/models/user_test.rb')
assert_match "3 users", run_test_command('test/models/user_test.rb -f')
end

def test_load_fixtures_when_running_test_suites
create_model_with_fixture
suites = [:models, :helpers, [:units, :unit], :controllers, :mailers,
Expand Down

0 comments on commit 62a0803

Please sign in to comment.