From 0e091ff6c35691711929c16a8e407ebf5fbc88b2 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Sat, 16 Aug 2014 16:42:28 -0700 Subject: [PATCH] Use new syntax for tests --- spec/commands/reload_code_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/commands/reload_code_spec.rb b/spec/commands/reload_code_spec.rb index c868bf6a..776db181 100644 --- a/spec/commands/reload_code_spec.rb +++ b/spec/commands/reload_code_spec.rb @@ -23,10 +23,10 @@ describe "reload_code" do end it 'raises an error when pry command not found' do - proc do + expect do pry_eval( "reload-code not-a-real-command") - end.should.raise(Pry::CommandError).message.should =~ /Cannot locate not-a-real-command!/ + end.to raise_error(Pry::CommandError, /Cannot locate not-a-real-command!/) end end end