Sha256: 4ef02a52d382c38e4ed7ab6e1cb40f85f646b48e6d7f0e42b525e4e3f9ba1ce7
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
require "spec_helper" describe ActsAsTaggableArrayOn::Parser do let(:parser) { ActsAsTaggableArrayOn.parser } describe "#parse" do it "return unprocessed tags if array" do tags = %w[red green] expect(parser.parse(tags)).to eq tags end it "return parsed tags if comma separated string" do tags = "red,green" expect(parser.parse(tags)).to eq %w[red green] end it "return parsed tags if comma separated string including white spaces" do tags = "red , gre en" expect(parser.parse(tags)).to eq ["red", "gre en"] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts-as-taggable-array-on-0.7.0 | spec/acts_as_tag_pgarray/parser_spec.rb |