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