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
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/disable_pry_spec.rb
pry-0.9.12.6 spec/commands/disable_pry_spec.rb
pry-0.9.12.6-i386-mswin32 spec/commands/disable_pry_spec.rb
pry-0.9.12.6-i386-mingw32 spec/commands/disable_pry_spec.rb
pry-0.9.12.6-java spec/commands/disable_pry_spec.rb
pry-0.9.12.5 spec/commands/disable_pry_spec.rb
pry-0.9.12.5-i386-mswin32 spec/commands/disable_pry_spec.rb
pry-0.9.12.5-i386-mingw32 spec/commands/disable_pry_spec.rb
pry-0.9.12.5-java spec/commands/disable_pry_spec.rb
pry-0.9.12.4 spec/commands/disable_pry_spec.rb
pry-0.9.12.4-i386-mswin32 spec/commands/disable_pry_spec.rb
pry-0.9.12.4-i386-mingw32 spec/commands/disable_pry_spec.rb
pry-0.9.12.4-java spec/commands/disable_pry_spec.rb
pry-0.9.12.3 spec/commands/disable_pry_spec.rb
pry-0.9.12.3-i386-mswin32 spec/commands/disable_pry_spec.rb
pry-0.9.12.3-i386-mingw32 spec/commands/disable_pry_spec.rb
pry-0.9.12.3-java spec/commands/disable_pry_spec.rb
torquebox-console-0.3.0 vendor/bundle/jruby/1.9/gems/pry-0.9.12-java/spec/commands/disable_pry_spec.rb
sshp-0.0.2 vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/disable_pry_spec.rb
sshp-0.0.1 vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/disable_pry_spec.rb