Sha256: 3439b0ca59a0d61ab04dbdeee2e8069cc0f98b583e6fd175942c50296806ff39
Contents?: true
Size: 589 Bytes
Versions: 27
Compression:
Stored size: 589 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require 'spec_helper' describe TwitterCldr::Tokenizers::Token do describe "#initialize" do it "should set instance variables passed in the options hash" do token = described_class.new(type: "my_type", value: "my_value") expect(token.type).to eq("my_type") expect(token.value).to eq("my_value") end end describe "#to_s" do it "should return the token's value" do expect(described_class.new(value: "my_value").to_s).to eq("my_value") end end end
Version data entries
27 entries across 27 versions & 1 rubygems