diff options
Diffstat (limited to 'spec/commands/exit_all_spec.rb')
-rw-r--r-- | spec/commands/exit_all_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/commands/exit_all_spec.rb b/spec/commands/exit_all_spec.rb index 7a771c93..1c53c84c 100644 --- a/spec/commands/exit_all_spec.rb +++ b/spec/commands/exit_all_spec.rb @@ -4,24 +4,24 @@ describe "exit-all" do before { @pry = Pry.new } it "should break out of the repl and return nil" do - @pry.eval("exit-all").should.be.false + @pry.eval("exit-all").should.be_false @pry.exit_value.should.be.nil end it "should break out of the repl wth a user specified value" do - @pry.eval("exit-all 'message'").should.be.false + @pry.eval("exit-all 'message'").should.be_false @pry.exit_value.should == "message" end it "should break out of the repl even if multiple bindings still on stack" do - ["cd 1", "cd 2"].each { |line| @pry.eval(line).should.be.true } - @pry.eval("exit-all 'message'").should.be.false + ["cd 1", "cd 2"].each { |line| @pry.eval(line).should.be_true } + @pry.eval("exit-all 'message'").should.be_false @pry.exit_value.should == "message" end it "should have empty binding_stack after breaking out of the repl" do - ["cd 1", "cd 2"].each { |line| @pry.eval(line).should.be.true } - @pry.eval("exit-all").should.be.false + ["cd 1", "cd 2"].each { |line| @pry.eval(line).should.be_true } + @pry.eval("exit-all").should.be_false @pry.binding_stack.should.be.empty end end |