Sha256: ac1973d3f88ad5e9b279543bd81602bb6108c020a6d397ae81a0dbc7c87bb305

Contents?: true

Size: 895 Bytes

Versions: 3

Compression:

Stored size: 895 Bytes

Contents

describe Card::Set::All::RichHtml::Wrapper do  
  context "full wrapping" do
    before do
      @ocslot = Card['A'].format
    end

    it "should have the appropriate attributes on open" do
      assert_view_select @ocslot.render(:open), 'div[class="card-slot open-view card-frame ALL TYPE-basic SELF-a"]' do
        assert_select 'h1[class="card-header"]' do
          assert_select 'span[class="card-title"]'
        end
        assert_select 'div[class~="card-body"]'
      end
    end

    it "should have the appropriate attributes on closed" do
      v = @ocslot.render(:closed)
      assert_view_select v, 'div[class="card-slot closed-view card-frame ALL TYPE-basic SELF-a"]' do
        assert_select 'h1[class="card-header"]' do
          assert_select 'span[class="card-title"]'
        end
        assert_select 'div[class~="closed-content card-content"]'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wagn-1.14.9 mod/05_standard/spec/set/all/rich_html/wrapper_spec.rb
wagn-1.14.8 mod/05_standard/spec/set/all/rich_html/wrapper_spec.rb
wagn-1.14.7 mod/05_standard/spec/set/all/rich_html/wrapper_spec.rb