mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
tweaked test for 'cd' command to use eval'd 'should'
This commit is contained in:
parent
5a85ea04d9
commit
d4eff58d87
1 changed files with 1 additions and 2 deletions
|
@ -7,11 +7,10 @@ describe Pry::Commands do
|
|||
b = Pry.binding_for(Object.new)
|
||||
b.eval("x = :mon_ouie")
|
||||
|
||||
redirect_global_pry_input(InputTester.new("cd x", "exit-all")) do
|
||||
redirect_global_pry_input(InputTester.new("cd x", "self.should == :mon_ouie;", "exit-all")) do
|
||||
Pry.new(:output => str_output).rep(b)
|
||||
end
|
||||
|
||||
str_output.string.should =~ /:mon_ouie/
|
||||
end
|
||||
|
||||
it 'should cd into complex input (with spaces)' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue