Sha256: 16190b22206fc257d87ab35355808ef8922df97d0fedafc3490323952d3e9a0b

Contents?: true

Size: 598 Bytes

Versions: 2

Compression:

Stored size: 598 Bytes

Contents

describe Card::Set::All::RichHtml::Toolbar do
  context "show toolbar" do
    subject do
      render_content "{{A|edit}}"
    end

    it "renders toolbar" do
      is_expected.to have_tag "div", with: { class: "SELF-a edit-view" } do
        with_tag "nav", with: { class: "toolbar" }
      end
    end
  end
  context "hidden toolbar" do
    subject do
      render_content "{{A|edit; hide: toolbar}}"
    end

    it "hides toolbar" do
      is_expected.to have_tag "div", with: { class: "SELF-a edit-view" } do
        without_tag "nav", with: { class: "toolbar" }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
card-1.91 mod/standard/spec/set/all/rich_html/toolbar_spec.rb
card-1.21.0 mod/standard/spec/set/all/rich_html/toolbar_spec.rb