Sha256: 5ba25f8a185a929a57bc03f87e70d3f73fc1bfd20d0d8040745008cd349041df

Contents?: true

Size: 332 Bytes

Versions: 5

Compression:

Stored size: 332 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 match_array(%w{first second})
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arbre-1.2.1 spec/arbre/unit/html/class_list_spec.rb
arbre-1.2.0 spec/arbre/unit/html/class_list_spec.rb
arbre-1.2.0.rc1 spec/arbre/unit/html/class_list_spec.rb
arbre-1.1.1 spec/arbre/unit/html/class_list_spec.rb
arbre-1.0.3 spec/arbre/unit/html/class_list_spec.rb