Sha256: a756378cf56747f773f9ceb94f8af9f8440350cc7b3601e485c2139e6fe3cfc6

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

require 'spec_helper'

describe Arbre::HTML::ClassList do

  describe ".build_from_string" do

    it "should build a new list from a string of classes" do
      list = Arbre::HTML::ClassList.build_from_string("first second")
      expect(list.size).to eq(2)

      expect(list.to_a.sort).to eq(%w{first second})
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
arbre-1.0.2 spec/arbre/unit/html/class_list_spec.rb