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:
parent
b43cac9c9d
commit
e59cd57ebf
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue