Merge pull request #41315 from etiennebarrie/cleanup-skipped-tests

Remove skipped TestRunner tests
This commit is contained in:
Rafael França 2021-02-02 19:22:46 -05:00 committed by GitHub
commit 5268006e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 24 deletions

View File

@ -240,30 +240,6 @@ module ApplicationTests
end
end
def test_run_with_model
skip "These feel a bit odd. Not sure we should keep supporting them."
create_model_with_fixture
create_fixture_test "models", "user"
assert_match "3 users", run_task(["test models/user"])
assert_match "3 users", run_task(["test app/models/user.rb"])
end
def test_run_different_environment_using_env_var
skip "no longer possible. Running tests in a different environment should be explicit"
app_file "test/unit/env_test.rb", <<-RUBY
require "test_helper"
class EnvTest < ActiveSupport::TestCase
def test_env
puts Rails.env
end
end
RUBY
ENV["RAILS_ENV"] = "development"
assert_match "development", run_test_command("test/unit/env_test.rb")
end
def test_run_in_test_environment_by_default
create_env_test