Sha256: 48768b536ea48c880dc9786e5bc6ad4dcca1cc3d0c22c97752b0fea41716e0c1

Contents?: true

Size: 563 Bytes

Versions: 79

Compression:

Stored size: 563 Bytes

Contents

require 'helper'

describe "gem-list" do
  # fixing bug for 1.8 compat
  it 'should not raise when invoked' do
    proc {
      pry_eval(self, 'gem-list')
    }.should.not.raise
  end

  it 'should work arglessly' do
    list = pry_eval('gem-list')
    list.should =~ /slop \(/
    list.should =~ /bacon \(/
  end

  it 'should find arg' do
    prylist = pry_eval('gem-list slop')
    prylist.should =~ /slop \(/
    prylist.should.not =~ /bacon/
  end

  it 'should return non-results as silence' do
    pry_eval('gem-list aoeuoueouaou').should.empty?
  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/gem_list_spec.rb
pry-0.9.12.6 spec/commands/gem_list_spec.rb
pry-0.9.12.6-i386-mswin32 spec/commands/gem_list_spec.rb
pry-0.9.12.6-i386-mingw32 spec/commands/gem_list_spec.rb
pry-0.9.12.6-java spec/commands/gem_list_spec.rb
pry-0.9.12.5 spec/commands/gem_list_spec.rb
pry-0.9.12.5-i386-mswin32 spec/commands/gem_list_spec.rb
pry-0.9.12.5-i386-mingw32 spec/commands/gem_list_spec.rb
pry-0.9.12.5-java spec/commands/gem_list_spec.rb
pry-0.9.12.4 spec/commands/gem_list_spec.rb
pry-0.9.12.4-i386-mswin32 spec/commands/gem_list_spec.rb
pry-0.9.12.4-i386-mingw32 spec/commands/gem_list_spec.rb
pry-0.9.12.4-java spec/commands/gem_list_spec.rb
pry-0.9.12.3 spec/commands/gem_list_spec.rb
pry-0.9.12.3-i386-mswin32 spec/commands/gem_list_spec.rb
pry-0.9.12.3-i386-mingw32 spec/commands/gem_list_spec.rb
pry-0.9.12.3-java spec/commands/gem_list_spec.rb
torquebox-console-0.3.0 vendor/bundle/jruby/1.9/gems/pry-0.9.12-java/spec/commands/gem_list_spec.rb
sshp-0.0.2 vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/gem_list_spec.rb
sshp-0.0.1 vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/gem_list_spec.rb