Sha256: 7aa4f734914169dd5beba9f3581fb48606055e12de807a6b0e77a3343d54a408
Contents?: true
Size: 367 Bytes
Versions: 8
Compression:
Stored size: 367 Bytes
Contents
require 'spec_helper' require 'reponaut/ext/hash' module Reponaut module Ext describe Hash do describe '#pairs' do it 'returns a list of key-value pairs' do h = {:one => 1, :two => 2, :three => 3} expected = [[:one, 1], [:two, 2], [:three, 3]] expect(h.pairs).to eq(expected) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems