describe Pry do before do @str_output = StringIO.new end [ ["p = '", "'"], ["def", "a", "(); end"], ["p = < true/m) end it "should allow whitespace delimeted strings" do expect(mock_pry('"%s" % % foo ')).to match(/"foo"/) end it "should allow newline delimeted strings" do expect(mock_pry('"%s" % %','foo')).to match(/"foo"/) end it "should allow whitespace delimeted strings ending on the first char of a line" do expect(mock_pry('"%s" % % ', ' #done!')).to match(/"\\n"/) end end