mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
added regression test for gem-list, PLS ppl remember to test on 1.8 too!! :))
This commit is contained in:
parent
cf2b6d4e80
commit
5e434a6045
1 changed files with 14 additions and 0 deletions
14
test/test_default_commands/test_gems.rb
Normal file
14
test/test_default_commands/test_gems.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
require 'helper'
|
||||
|
||||
describe "Pry::DefaultCommands::Gems" do
|
||||
describe "gem-list" do
|
||||
|
||||
# fixing bug for 1.8 compat
|
||||
it 'should not raise when invoked' do
|
||||
str_output = StringIO.new
|
||||
Pry.start self, :input => InputTester.new("gem-list", "exit-all"), :output => str_output
|
||||
str_output.string.should.not =~ /NoMethodError/
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in a new issue