Sha256: 49e93a0b58d04324a36a7cfec6074eace5f05b63f7b08e988a71e62e5cb1923a

Contents?: true

Size: 413 Bytes

Versions: 6

Compression:

Stored size: 413 Bytes

Contents

require "spec_helper"

describe MakeTaggable::GenericParser do
  it "#parse should return empty array if empty tag string is passed" do
    tag_list = MakeTaggable::GenericParser.new("")
    expect(tag_list.parse).to be_empty
  end

  it "#parse should separate tags by comma" do
    tag_list = MakeTaggable::GenericParser.new("cool,data,,I,have")
    expect(tag_list.parse).to eq(%w[cool data I have])
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
make_taggable-0.7.1 spec/make_taggable/generic_parser_spec.rb
make_taggable-0.7.0 spec/make_taggable/generic_parser_spec.rb
make_taggable-0.6.6 spec/make_taggable/generic_parser_spec.rb
make_taggable-0.6.5 spec/make_taggable/generic_parser_spec.rb
make_taggable-0.6.4 spec/make_taggable/generic_parser_spec.rb
make_taggable-0.6.3 spec/make_taggable/generic_parser_spec.rb