@@ -140,8 +140,8 @@ class RequireDependencyTest < ActiveSupport::TestCase
140
140
end
141
141
142
142
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" )
145
145
end
146
146
147
147
test "require_dependency handles absolute paths correctly" do
@@ -150,8 +150,8 @@ class RequireDependencyTest < ActiveSupport::TestCase
150
150
end
151
151
152
152
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" )
155
155
end
156
156
157
157
test "require_dependency supports arguments that respond to to_path" do
@@ -166,8 +166,8 @@ def x.to_path; "x"; end
166
166
x = Object . new
167
167
def x . to_path ; "x" ; end
168
168
169
- assert require_dependency ( x )
170
- assert ! require_dependency ( x )
169
+ assert require_dependency ( x )
170
+ assert_not require_dependency ( x )
171
171
end
172
172
173
173
test "require_dependency fallback to Kernel#require" do
@@ -187,8 +187,8 @@ def x.to_path; "x"; end
187
187
$LOAD_PATH << dir
188
188
File . write ( "#{ dir } /y.rb" , "Y = :Y" )
189
189
190
- assert require_dependency ( "y" )
191
- assert ! require_dependency ( "y" )
190
+ assert require_dependency ( "y" )
191
+ assert_not require_dependency ( "y" )
192
192
ensure
193
193
$LOAD_PATH. pop
194
194
Object . send ( :remove_const , :Y ) if Object . const_defined? ( :Y )
0 commit comments