Sha256: d2d5da9f0122f9dc439158b355af32655d00ded7309b2ee8e76a742b20dbcc50

Contents?: true

Size: 661 Bytes

Versions: 3

Compression:

Stored size: 661 Bytes

Contents

require "spec_helper"

describe Docks::Tags::Static do
  subject { Docks::Tags::Static.instance }

  it "does not allow multiline content" do
    expect(subject.multiline?).to be false
  end

  it "only allows one tag per block" do
    expect(subject.multiple_allowed?).to be false
  end

  describe "#process" do
    it "sets the class to be true when it exists at all" do
      symbol = Docks::Containers::Symbol.new

      symbol[subject.name] = ""
      subject.process(symbol)
      expect(symbol[subject.name]).to be true

      symbol[subject.name] = "static"
      subject.process(symbol)
      expect(symbol[subject.name]).to be true
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
docks_app-0.0.3 spec/lib/tags/static_tag_spec.rb
docks_app-0.0.2 spec/lib/tags/static_tag_spec.rb
docks_app-0.0.1 spec/lib/tags/static_tag_spec.rb