Sha256: 5d8a8ab779def2752f025b461378c52b19950b76a755711cd6a17593c8c059bf

Contents?: true

Size: 1003 Bytes

Versions: 12

Compression:

Stored size: 1003 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-rich_text.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-rich_text.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

12 entries across 12 versions & 1 rubygems

Version Path
card-1.100.0 mod/standard/spec/set/all/rich_html/wrapper_spec.rb
card-1.99.6 mod/standard/spec/set/all/rich_html/wrapper_spec.rb
card-1.99.5 mod/standard/spec/set/all/rich_html/wrapper_spec.rb
card-1.99.4 mod/standard/spec/set/all/rich_html/wrapper_spec.rb
card-1.99.3 mod/standard/spec/set/all/rich_html/wrapper_spec.rb
card-1.99.2 mod/standard/spec/set/all/rich_html/wrapper_spec.rb
card-1.99.1 mod/standard/spec/set/all/rich_html/wrapper_spec.rb
card-1.99.0 mod/standard/spec/set/all/rich_html/wrapper_spec.rb
card-1.98.3 mod/standard/spec/set/all/rich_html/wrapper_spec.rb
card-1.98.2 mod/standard/spec/set/all/rich_html/wrapper_spec.rb
card-1.98.1 mod/standard/spec/set/all/rich_html/wrapper_spec.rb
card-1.98.0 mod/standard/spec/set/all/rich_html/wrapper_spec.rb