Skip to content
  • KJ Tsanaktsidis's avatar
    927a44b4
    Rewrite #test_redefinition_mismatch to use a dedicated test class · 927a44b4
    KJ Tsanaktsidis authored
    This test is checking what happens if you try and define a class in a C
    extension where that constant is already not a class. It was doing this
    by overriding ::Date and then trying to require 'date. The issue with
    this is that if we ever add 'date' as a dependency for the test runner,
    this test will break because the test runner files get implicitly
    required in an `assert_separately` block.
    
    Better use an explicit class for this purpose which can't be accidentally
    required elsewhere.
    927a44b4
    Rewrite #test_redefinition_mismatch to use a dedicated test class
    KJ Tsanaktsidis authored
    This test is checking what happens if you try and define a class in a C
    extension where that constant is already not a class. It was doing this
    by overriding ::Date and then trying to require 'date. The issue with
    this is that if we ever add 'date' as a dependency for the test runner,
    this test will break because the test runner files get implicitly
    required in an `assert_separately` block.
    
    Better use an explicit class for this purpose which can't be accidentally
    required elsewhere.
Loading