Sha256: 413797b7eadb4ca943661f10576ee41fc5182545303dc619506cbe6937327346
Contents?: true
Size: 520 Bytes
Versions: 6
Compression:
Stored size: 520 Bytes
Contents
require 'spec_helper' require 'mark_mapper/normalizers/integer' describe MarkMapper::Normalizers::Integer do context "with nil" do it "returns nil" do subject.call(nil).should be_nil end end context "with an integer" do it "returns an integer" do subject.call(1).should be(1) subject.call(3232).should be(3232) end end context "with a string" do it "returns a string" do subject.call('1').should be(1) subject.call('3232').should be(3232) end end end
Version data entries
6 entries across 6 versions & 1 rubygems