summaryrefslogtreecommitdiff
path: root/spec/data_structures/hash_table_spec.rb
blob: 4067e3417a7c55eedc9b5e68f817757668b04979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require "spec_helper"

describe HashTable do
  subject { HashTable.new }

  it "returns a default value" do
    expect(subject[:unkonwn]).to be_nil
  end

  it "can return the value associated to a key" do
    subject[:name] = 'mo'
    expect(subject[:name]).to eq('mo')
  end
end