describe Pry do before do @str_output = StringIO.new end describe ".configure" do it "yields a block with Pry.config as its argument" do Pry.config.foo = nil Pry.configure do |config| config.foo = "bar" end expect(Pry.config.foo).to eq("bar") end end describe "Exotic object support" do # regression test for exotic object support it "Should not error when return value is a BasicObject instance" do ReplTester.start do input('BasicObject.new').should =~ /^=> #')).to match(%r{/\n\n/}) end end describe "newline from an empty heredoc" do it "works" do expect(mock_pry('<