From 69170272c80ec152e5198a3591d4f97d0ebdf265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=88king?= Date: Mon, 5 Nov 2012 00:40:24 -0600 Subject: [PATCH] Not !~, but .not =~. --- test/test_commands/test_ls.rb | 4 ++-- test/test_pry_output.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_commands/test_ls.rb b/test/test_commands/test_ls.rb index 84e7ed55..a4178de4 100644 --- a/test/test_commands/test_ls.rb +++ b/test/test_commands/test_ls.rb @@ -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 diff --git a/test/test_pry_output.rb b/test/test_pry_output.rb index 120c7de4..02cd51a9 100644 --- a/test/test_pry_output.rb +++ b/test/test_pry_output.rb @@ -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