Sha256: 1c46ac0e19f84224c8a35fc1296011bed515393c2d44e27321d35c592eb37972
Contents?: true
Size: 966 Bytes
Versions: 4
Compression:
Stored size: 966 Bytes
Contents
unless Object.const_defined? 'Pry' $:.unshift File.expand_path '../../lib', __FILE__ require 'pry' end require 'bacon' # Ensure we do not execute any rc files Pry::RC_FILES.clear Pry.color = false Pry.should_load_rc = false 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 def self.string(*) end end end CommandTester = Pry::CommandSet.new :test do 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pry-0.8.4pre1 | test/helper.rb |
pry-0.8.4pre1-i386-mswin32 | test/helper.rb |
pry-0.8.4pre1-i386-mingw32 | test/helper.rb |
pry-0.8.4pre1-java | test/helper.rb |