Sha256: a458162a041e87616bf358efaf0f639c63775d5f1f2247041bcf6943f711d503

Contents?: true

Size: 703 Bytes

Versions: 63

Compression:

Stored size: 703 Bytes

Contents

class Module
  public :remove_const
end

class << Pry
  alias_method :orig_reset_defaults, :reset_defaults
  def reset_defaults
    orig_reset_defaults
    Pry.color = false
  end
end

class InputTester
  def initialize(*actions)
    @orig_actions = actions.dup
    @actions = actions
  end

  def readline(*)
    @actions.shift
  end

  def rewind
    @actions = @orig_actions.dup
  end
end

class Pry

  # null output class - doesn't write anywwhere.
  class NullOutput
    def self.puts(*) end
  end
end


class CommandTester < Pry::CommandBase

  command "command1", "command 1 test" do
    output.puts "command1"
  end

  command "command2", "command 2 test" do |arg|
    output.puts arg
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
pry-0.7.7.2-i386-mingw32 test/test_helper.rb
pry-0.7.7.2-i386-mswin32 test/test_helper.rb
pry-0.7.7.2 test/test_helper.rb
pry-0.7.7.2-java test/test_helper.rb
pry-0.7.7.1-i386-mswin32 test/test_helper.rb
pry-0.7.7.1-java test/test_helper.rb
pry-0.7.7.1 test/test_helper.rb
pry-0.7.7.1-i386-mingw32 test/test_helper.rb
pry-0.7.7-i386-mswin32 test/test_helper.rb
pry-0.7.7-java test/test_helper.rb
pry-0.7.7 test/test_helper.rb
pry-0.7.7-i386-mingw32 test/test_helper.rb
pry-0.7.6.1-java test/test_helper.rb
pry-0.7.6.1 test/test_helper.rb
pry-0.7.6.1-i386-mswin32 test/test_helper.rb
pry-0.7.6.1-i386-mingw32 test/test_helper.rb
pry-0.7.6-java test/test_helper.rb
pry-0.7.6-i386-mswin32 test/test_helper.rb
pry-0.7.6 test/test_helper.rb
pry-0.7.6-i386-mingw32 test/test_helper.rb