Sha256: c1b728dbf98cba6b13db74aac0d753dfb778f9a08715bb68285bec1d664e905e

Contents?: true

Size: 995 Bytes

Versions: 2

Compression:

Stored size: 995 Bytes

Contents

# -*- encoding : utf-8 -*-

RSpec.describe Card::Set::All::RichHtml::Wrapper do
  context "with full wrapping" do
    let(:ocslot)  { Card["A"].format }

    it "has the appropriate attributes on open" do
      expect_view(:open, card: "A")
        .to have_tag'div.card-slot.open-view.ALL.TYPE-basic.SELF-a' do
          with_tag 'div.d0-card-frame.card' do
            with_tag 'div.d0-card-header.card-header' do
              with_tag 'div.d0-card-header-title'
            end
            with_tag 'div.d0-card-body'
          end
        end
    end

    it "has the appropriate attributes on closed" do
      expect_view(:closed, card: "A")
        .to have_tag 'div.card-slot.closed-view.ALL.TYPE-basic.SELF-a' do
          with_tag 'div.d0-card-frame.card' do
            with_tag 'div.d0-card-header.card-header' do
              with_tag 'div.d0-card-header-title'
            end
            without_tag 'div.d0-card-body.d0-card-content'
          end
        end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
card-1.97.0.1 mod/standard/spec/set/all/rich_html/wrapper_spec.rb
card-1.97.0 mod/standard/spec/set/all/rich_html/wrapper_spec.rb