1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Fix ls formatting spec error

This commit is contained in:
Conrad Irwin 2012-12-09 22:08:56 -08:00
parent b43cac9c9d
commit e59cd57ebf

View file

@ -164,13 +164,13 @@ describe "ls" do
if Pry::Helpers::BaseHelpers.jruby?
describe 'on java objects' do
it 'should omit java-esque aliases by default' do
pry_eval('ls java.lang.Thread.current_thread').should =~ / thread_group /
pry_eval('ls java.lang.Thread.current_thread').should.not =~ / getThreadGroup /
pry_eval('ls java.lang.Thread.current_thread').should =~ /\bthread_group\b/
pry_eval('ls java.lang.Thread.current_thread').should.not =~ /\bgetThreadGroup\b/
end
it 'should include java-esque aliases if requested' do
pry_eval('ls java.lang.Thread.current_thread -J').should =~ / thread_group /
pry_eval('ls java.lang.Thread.current_thread -J').should =~ / getThreadGroup /
pry_eval('ls java.lang.Thread.current_thread -J').should =~ /\bthread_group\b/
pry_eval('ls java.lang.Thread.current_thread -J').should =~ /\bgetThreadGroup\b/
end
end
end