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

Added tests for Pry::Command::ReloadCode#reload_object and Pry::Command::ReloadCode#process

This commit is contained in:
Tom Kadwill 2014-05-10 10:09:11 +01:00
parent 93e81d7209
commit 1376726cf6

View file

@ -17,5 +17,16 @@ describe "reload_code" do
"reload-code")
end.should.raise(Pry::CommandError)
end
it 'reloads pry commmand' do
pry_eval("reload-code reload-code").should =~ /reload-code was reloaded!/
end
it 'raises an error when pry command not found' do
proc do
pry_eval(
"reload-code not-a-real-command")
end.should.raise(Pry::CommandError).message.should =~ /Cannot locate not-a-real-command!/
end
end
end