Sha256: a1307ebf0ea2faef2b5bb2e12dc96b2df337ed9732e375067a17701d65c4899c

Contents?: true

Size: 592 Bytes

Versions: 2

Compression:

Stored size: 592 Bytes

Contents

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

RSpec.describe Card::Set::Type::Set::HtmlViews do
  def card_subject
    Card.fetch("User+*type")
  end

  check_html_views_for_errors

  it "renders setting table for a right set" do
    expect_view("open", card: "*read+*right")
      .to have_tag "div", with: { id: "Xread-Xright-open-view" } do
      with_tag "form", with: { role: "filter" }
      with_tag "table" do
        with_tag "tr", with: { id: "Xread-Xright-Xcreate-rule_row-view" } do
          with_tag "td", "create"
          with_tag "td", "Administrator"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
card-1.97.0.1 mod/rules/spec/set/type/set/html_views_spec.rb
card-1.97.0 mod/rules/spec/set/type/set/html_views_spec.rb