Sha256: 72db772e5e4c21a562f8991b55774540924e5a97f3de06214880e19bb0467fc5
Contents?: true
Size: 496 Bytes
Versions: 26
Compression:
Stored size: 496 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 expect(doc.css('#rando code').text).not_to be_empty 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
26 entries across 26 versions & 1 rubygems