Skip to content

Commit

Permalink
fixes falling specs
Browse files Browse the repository at this point in the history
  • Loading branch information
moofkit committed Nov 7, 2020
1 parent a07adb2 commit a85d7a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/module/const_source_location_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,15 @@
end

it 'does search path in autoload declaration a constant with a toplevel scope qualifier' do
Object.const_source_location('::CSAutoloadB').should == [@constants_autoload_path + '_b.rb', 2]
Object.const_source_location('::CSAutoloadB').should == [@constants_autoload_path + '_b.rb', 1]
end

it 'does search path in autoload declaration a module and resolve a constant within' do
Object.const_source_location('CSAutoloadC::CONST').should == [@constants_autoload + '_c.rb', 2]
Object.const_source_location('CSAutoloadC::CONST').should == [@constants_autoload_path + '_c.rb', 2]
end

it 'does autoload a non-toplevel module' do
Object.const_source_location('CSAutoloadD::InnerModule').should == [@constants_autoload + '_d.rb', 2]
Object.const_source_location('CSAutoloadD::InnerModule').should == [@constants_autoload_path + '_d.rb', 2]
end
end
end
Expand Down

0 comments on commit a85d7a2

Please sign in to comment.