Sha256: ec2052c61134ca8249b59ccb04a2d7c15bf0f0eb4d5ede26e818eb534a1630fd

Contents?: true

Size: 600 Bytes

Versions: 26

Compression:

Stored size: 600 Bytes

Contents

require 'helper'

describe "Pry::DefaultCommands::Shell" do
  describe "cat" do

    # this doesnt work so well on rbx due to differences in backtrace
    # so we currently skip rbx until we figure out a workaround
    if !rbx?
      it 'cat --ex should give warning when exception is raised in repl' do
        mock_pry("this raises error", "cat --ex").should =~ /Cannot cat exceptions raised in REPL/
      end

      it 'cat --ex should correctly display code that generated exception' do
        mock_pry("broken_method", "cat --ex").should =~ /this method is broken/
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
pry-0.9.5 test/test_default_commands/test_shell.rb
pry-0.9.5-i386-mswin32 test/test_default_commands/test_shell.rb
pry-0.9.5-i386-mingw32 test/test_default_commands/test_shell.rb
pry-0.9.5-java test/test_default_commands/test_shell.rb
pry-0.9.4pre6 test/test_default_commands/test_shell.rb
pry-0.9.4pre6-i386-mswin32 test/test_default_commands/test_shell.rb
pry-0.9.4pre6-i386-mingw32 test/test_default_commands/test_shell.rb
pry-0.9.4pre6-java test/test_default_commands/test_shell.rb
pry-0.9.4-i386-mswin32 test/test_default_commands/test_shell.rb
pry-0.9.4-i386-mingw32 test/test_default_commands/test_shell.rb
pry-0.9.4pre5 test/test_default_commands/test_shell.rb
pry-0.9.4pre5-i386-mswin32 test/test_default_commands/test_shell.rb
pry-0.9.4pre5-i386-mingw32 test/test_default_commands/test_shell.rb
pry-0.9.4pre5-java test/test_default_commands/test_shell.rb
pry-0.9.4pre4 test/test_default_commands/test_shell.rb
pry-0.9.4pre4-i386-mswin32 test/test_default_commands/test_shell.rb
pry-0.9.4pre4-i386-mingw32 test/test_default_commands/test_shell.rb
pry-0.9.4pre4-java test/test_default_commands/test_shell.rb
pry-0.9.4pre3 test/test_default_commands/test_shell.rb
pry-0.9.4pre3-i386-mswin32 test/test_default_commands/test_shell.rb