diff --git a/test/test_default_commands/test_gems.rb b/test/test_default_commands/test_gems.rb new file mode 100644 index 00000000..e2c662dd --- /dev/null +++ b/test/test_default_commands/test_gems.rb @@ -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 +