Sha256: c62755bc4f442b7271c75534d9b1d55bd292c0271dfa2f7c6466c865675e74a0

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

require "spec_helper"

describe "DOM Attribute Assignment" do
  let(:doc) { Brief.persona_document  }
  let(:model) { doc.to_model }

  it "should make targeting elements easier" do
    binding.pry
  end

  it "should assign attributes to the headings" do
    expect(doc.css('[data-random-attr="value"]').length).to eq(1)
  end

  it "should not include the attribute syntax in the text" do
    expect(doc.css('h2').text).to eq('Random Heading')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
brief-1.14.0 spec/lib/brief/dom_attribute_assignment_spec.rb