1 2 3 4 5 6 7 8 9 10 11 12 13 14
require "spec_helper" describe HashTable do let(:sut) { HashTable.new } it "returns a default value" do expect(sut[:unkonwn]).to be_nil end it "can return the value associated to a key" do sut[:name] = 'mo' expect(sut[:name]).to eq('mo') end end