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:
commit
b26a5ec32e
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue