Sha256: acd3520623dae7ef728b1e6480e58e885c60b94e69256270eba110664c8b9eeb

Contents?: true

Size: 461 Bytes

Versions: 79

Compression:

Stored size: 461 Bytes

Contents

require 'helper'

describe "disable-pry" do
  before do
    @t = pry_tester
  end

  after do
    ENV.delete 'DISABLE_PRY'
  end

  it 'should quit the current session' do
    lambda{
      @t.process_command 'disable-pry'
    }.should.throw(:breakout)
  end

  it "should set DISABLE_PRY" do
    ENV['DISABLE_PRY'].should == nil
    lambda{
      @t.process_command 'disable-pry'
    }.should.throw(:breakout)
    ENV['DISABLE_PRY'].should == 'true'
  end
end

Version data entries

79 entries across 79 versions & 5 rubygems

Version Path
pry-1.0.0.pre1-i386-mingw32 spec/commands/disable_pry_spec.rb
torquebox-console-0.2.4 vendor/bundle/jruby/1.9/gems/pry-0.9.12-java/spec/commands/disable_pry_spec.rb
torquebox-console-0.2.3 vendor/bundle/jruby/1.9/gems/pry-0.9.12-java/spec/commands/disable_pry_spec.rb
pry-0.9.12 spec/commands/disable_pry_spec.rb
pry-0.9.12-i386-mswin32 spec/commands/disable_pry_spec.rb
pry-0.9.12-i386-mingw32 spec/commands/disable_pry_spec.rb
pry-0.9.12-java spec/commands/disable_pry_spec.rb
pry-0.9.12pre3 spec/commands/disable_pry_spec.rb
pry-0.9.12pre3-i386-mswin32 spec/commands/disable_pry_spec.rb
pry-0.9.12pre3-i386-mingw32 spec/commands/disable_pry_spec.rb
pry-0.9.12pre3-java spec/commands/disable_pry_spec.rb
pry-0.9.12pre2 spec/commands/disable_pry_spec.rb
pry-0.9.12pre2-i386-mswin32 spec/commands/disable_pry_spec.rb
pry-0.9.12pre2-i386-mingw32 spec/commands/disable_pry_spec.rb
pry-0.9.12pre2-java spec/commands/disable_pry_spec.rb
pry-0.9.12pre1 spec/commands/disable_pry_spec.rb
pry-0.9.12pre1-i386-mswin32 spec/commands/disable_pry_spec.rb
pry-0.9.12pre1-i386-mingw32 spec/commands/disable_pry_spec.rb
pry-0.9.12pre1-java spec/commands/disable_pry_spec.rb
pry-0.9.11.4 spec/commands/disable_pry_spec.rb