Skip to content

Commit ac4c4c4

Browse files
committed
Fix Object.with test class name typo
`with_test.rb` should define a class named `WithTest`. Instead, it redefines `BlankTest`. This seems to be a copy/paste typo. This commit renames `BlankTest` to `WithTest` to follow convention, and to avoid any potential conflicts of 2 test files defining the same class.
1 parent ca5132b commit ac4c4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/test/core_ext/object/with_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require_relative "../../abstract_unit"
44
require "active_support/core_ext/object/with"
55

6-
class BlankTest < ActiveSupport::TestCase
6+
class WithTest < ActiveSupport::TestCase
77
class Record
88
def initialize
99
@public_attr = :public

0 commit comments

Comments
 (0)