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

Merge commit '0e091ff6c35691711929c16a8e407ebf5fbc88b2'

This commit is contained in:
Conrad Irwin 2014-08-16 16:43:25 -07:00
commit b26a5ec32e

View file

@ -17,5 +17,16 @@ describe "reload_code" do
"reload-code")
end.to raise_error(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
expect do
pry_eval(
"reload-code not-a-real-command")
end.to raise_error(Pry::CommandError, /Cannot locate not-a-real-command!/)
end
end
end