require 'helper' 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 mock_pry('"%s" %% foo ').should =~ /"foo"/ end it "should allow newline delimeted strings" do mock_pry('"%s" %%','foo').should =~ /"foo"/ end it "should allow whitespace delimeted strings ending on the first char of a line" do mock_pry('"%s" %% ', ' #done!').should =~ /"\\n"/ end end