Skip to content

Commit ee98178

Browse files
committed
1 parent 7271d5e commit ee98178

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

activesupport/test/dependencies_test.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ class RequireDependencyTest < ActiveSupport::TestCase
140140
end
141141

142142
test "require_dependency looks autoload paths up (idempotent)" do
143-
assert require_dependency("x")
144-
assert !require_dependency("x")
143+
assert require_dependency("x")
144+
assert_not require_dependency("x")
145145
end
146146

147147
test "require_dependency handles absolute paths correctly" do
@@ -150,8 +150,8 @@ class RequireDependencyTest < ActiveSupport::TestCase
150150
end
151151

152152
test "require_dependency handles absolute paths correctly (idempotent)" do
153-
assert require_dependency("#{@root_dir}/x.rb")
154-
assert !require_dependency("#{@root_dir}/x.rb")
153+
assert require_dependency("#{@root_dir}/x.rb")
154+
assert_not require_dependency("#{@root_dir}/x.rb")
155155
end
156156

157157
test "require_dependency supports arguments that respond to to_path" do
@@ -166,8 +166,8 @@ def x.to_path; "x"; end
166166
x = Object.new
167167
def x.to_path; "x"; end
168168

169-
assert require_dependency(x)
170-
assert !require_dependency(x)
169+
assert require_dependency(x)
170+
assert_not require_dependency(x)
171171
end
172172

173173
test "require_dependency fallback to Kernel#require" do
@@ -187,8 +187,8 @@ def x.to_path; "x"; end
187187
$LOAD_PATH << dir
188188
File.write("#{dir}/y.rb", "Y = :Y")
189189

190-
assert require_dependency("y")
191-
assert !require_dependency("y")
190+
assert require_dependency("y")
191+
assert_not require_dependency("y")
192192
ensure
193193
$LOAD_PATH.pop
194194
Object.send(:remove_const, :Y) if Object.const_defined?(:Y)

0 commit comments

Comments
 (0)