Sha256: 7c47aa2cd71b89dea3fd02a7d3a7401b4628216e023437f8f39bb6218d88b4df
Contents?: true
Size: 587 Bytes
Versions: 1
Compression:
Stored size: 587 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require 'spec_helper' describe TwitterCldr::Parsers::SymbolTable do let(:table) { described_class.new(a: "b", c: "d") } describe "#fetch" do it "should be able to retrieve values for symbols" do expect(table.fetch(:a)).to eq("b") expect { table.fetch(:z) }.to raise_error(KeyError) end end describe "#add" do it "should be able to add then fetch new values for symbols" do table.add(:e, "f") expect(table.fetch(:e)).to eq("f") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitter_cldr-6.12.0 | spec/parsers/symbol_table_spec.rb |