mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Not !~, but .not =~.
This commit is contained in:
parent
95fbab218d
commit
69170272c8
2 changed files with 3 additions and 3 deletions
|
@ -64,8 +64,8 @@ describe "ls" do
|
|||
describe 'with -l' do
|
||||
it 'should find locals and sort by descending size' do
|
||||
result = pry_eval("aa = 'asdf'; bb = 'xyz'", 'ls -l')
|
||||
result.should !~ /=>/
|
||||
result.should !~ /0x\d{5}/
|
||||
result.should.not =~ /=>/
|
||||
result.should.not =~ /0x\d{5}/
|
||||
result.should =~ /asdf.*xyz/m
|
||||
end
|
||||
it 'should not list pry noise' do
|
||||
|
|
|
@ -37,7 +37,7 @@ describe Pry do
|
|||
it 'should have a milder-mannered companion without the hashrocket' do
|
||||
s = StringIO.new
|
||||
Pry.format_for_output s, '2', :hashrocket => false
|
||||
s.string.should !~ /^=>/
|
||||
s.string.should.not =~ /^=>/
|
||||
end
|
||||
|
||||
it "should not be phased by un-inspectable things" do
|
||||
|
|
Loading…
Add table
Reference in a new issue