Sha256: e1a847bafb079b3412cfd49852a87e02d53f7f499d4e837a5c1c96d749acb65e
Contents?: true
Size: 778 Bytes
Versions: 35
Compression:
Stored size: 778 Bytes
Contents
# encoding: ascii-8bit # Copyright 2014 Ball Aerospace & Technologies Corp. # All Rights Reserved. # # This program is free software; you can modify and/or redistribute it # under the terms of the GNU General Public License # as published by the Free Software Foundation; version 3 with # attribution addendums as found in the LICENSE.txt require 'spec_helper' require 'cosmos/core_ext/hash' describe Hash do describe "inspect" do it "limits the number of items to 10" do hash = {'1'=>1,'2'=>2,'3'=>3,'4'=>4,'5'=>5,'6'=>6,'7'=>7,'8'=>8,'9'=>9,'10'=>10} expect(hash.inspect).to eql '{"1"=>1, "2"=>2, "3"=>3, "4"=>4, "5"=>5, "6"=>6, "7"=>7, "8"=>8, "9"=>9, "10"=>10}' hash['11'] = 11 expect(hash.inspect).to match /#<Hash:\d+>/ end end end
Version data entries
35 entries across 35 versions & 1 rubygems