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
pry-0.9.11.4-i386-mswin32 spec/commands/gem_list_spec.rb
pry-0.9.11.4-i386-mingw32 spec/commands/gem_list_spec.rb
pry-0.9.11.4-java spec/commands/gem_list_spec.rb
pry-0.9.11.3 spec/commands/gem_list_spec.rb
pry-0.9.11.3-i386-mswin32 spec/commands/gem_list_spec.rb
pry-0.9.11.3-i386-mingw32 spec/commands/gem_list_spec.rb
pry-0.9.11.3-java spec/commands/gem_list_spec.rb
pry-0.9.11.2 spec/commands/gem_list_spec.rb
pry-0.9.11.2-i386-mswin32 spec/commands/gem_list_spec.rb
pry-0.9.11.2-i386-mingw32 spec/commands/gem_list_spec.rb
pry-0.9.11.2-java spec/commands/gem_list_spec.rb
pry-0.9.11.1 spec/commands/gem_list_spec.rb
pry-0.9.11.1-i386-mswin32 spec/commands/gem_list_spec.rb
pry-0.9.11.1-i386-mingw32 spec/commands/gem_list_spec.rb
pry-0.9.11.1-java spec/commands/gem_list_spec.rb
pry-0.9.11 spec/commands/gem_list_spec.rb
pry-0.9.11-i386-mswin32 spec/commands/gem_list_spec.rb
pry-0.9.11-i386-mingw32 spec/commands/gem_list_spec.rb
pry-0.9.11-java spec/commands/gem_list_spec.rb