Skip to content

Commit 442e851

Browse files
committed
Improve Kernel#load spec to be more explicit
1 parent c384538 commit 442e851

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/ruby/core/kernel/shared/load.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
path = File.expand_path "wrap_fixture.rb", CODE_LOADING_DIR
102102
@object.load(path, true)
103103

104-
ScratchPad.recorded.first.should be_an_instance_of(Class)
104+
ScratchPad.recorded.first.should equal(String)
105105
end
106106

107107
describe "with top-level methods" do
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
class LoadSpecWrap
2-
ScratchPad << self
2+
ScratchPad << String
33
end

0 commit comments

Comments
 (0)