spec/tokenizers/token_spec.rb in twitter_cldr-3.0.1 vs spec/tokenizers/token_spec.rb in twitter_cldr-3.0.2

- old
+ new

@@ -9,16 +9,16 @@ describe 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.type.should == "my_type" - token.value.should == "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 - Token.new(:value => "my_value").to_s.should == "my_value" + expect(Token.new(:value => "my_value").to_s).to eq("my_value") end end end \ No newline at end of file