spec/tokenizers/token_spec.rb in twitter_cldr-4.4.5 vs spec/tokenizers/token_spec.rb in twitter_cldr-5.0.0

- old
+ new

@@ -3,22 +3,20 @@ # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require 'spec_helper' -include TwitterCldr::Tokenizers - -describe Token do +describe TwitterCldr::Tokenizers::Token do describe "#initialize" do it "should set instance variables passed in the options hash" do - token = Token.new(type: "my_type", value: "my_value") + 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(Token.new(value: "my_value").to_s).to eq("my_value") + expect(described_class.new(value: "my_value").to_s).to eq("my_value") end end -end \ No newline at end of file +end