1
0
Fork 0
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:
John Mair 2011-05-08 18:20:43 +12:00
parent 5a85ea04d9
commit d4eff58d87

View file

@ -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