Sha256: 428cfb78d09d8317ecac04c28e88a92467fc3441e6b6f891bde9920f38393c40

Contents?: true

Size: 689 Bytes

Versions: 6

Compression:

Stored size: 689 Bytes

Contents

require "spec_helper"

describe "word-wrap" do
  before(:all) do
    ParserSupport.parse_file("library/word-wrap")
  end

  context "called on element" do
    it "adds word-wrap" do
      input = ".word-wrap"
      ruleset = "overflow-wrap: break-word; " +
                "word-wrap: break-word; " +
                "word-break: break-all;"

      expect(input).to have_ruleset(ruleset)
    end
  end

  context "called on element with break" do
    it "adds break" do
      input = ".word-wrap-break"
      ruleset = "overflow-wrap: normal; " +
                "word-wrap: normal; " +
                "word-break: normal;"

      expect(input).to have_ruleset(ruleset)
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
doggystyle-0.1.0 spec/doggystyle/library/word_wrap_spec.rb
bourbon-5.0.0.beta.6 spec/bourbon/library/word_wrap_spec.rb
bourbon-5.0.0.beta.5 spec/bourbon/library/word_wrap_spec.rb
bourbon-5.0.0.beta.4 spec/bourbon/library/word_wrap_spec.rb
bourbon-5.0.0.beta.3 spec/bourbon/library/word_wrap_spec.rb
bourbon-5.0.0.beta.2 spec/bourbon/library/word_wrap_spec.rb