Skip to content

Commit

Permalink
Update existing pry_repl test
Browse files Browse the repository at this point in the history
  • Loading branch information
rf- committed Dec 24, 2012
1 parent ba34576 commit e82eaad
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions spec/pry_repl_spec.rb
@@ -1,6 +1,6 @@
require 'helper'

describe "The REPL" do
describe "The whole thing" do
before do
Pry.config.auto_indent = true
end
Expand All @@ -10,7 +10,14 @@
end

it "should let you run commands in the middle of multiline expressions" do
mock_pry("def a", "!", "5").should =~ /Input buffer cleared/
ReplTester.start do
input 'def a'
input '!'
output /^Input buffer cleared/

input '5'
output '=> 5'
end
end

describe "eval_string and binding_stack" do
Expand Down

0 comments on commit e82eaad

Please sign in to comment.