Sha256: 5970b4a28e2541837b2bead98f0f09752ba6a65f4d600251e9db3354f98502ed

Contents?: true

Size: 649 Bytes

Versions: 8

Compression:

Stored size: 649 Bytes

Contents

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

RSpec.describe Card::Set::Rule::Editor do
  def card_subject
    Card.fetch("*read+*right+*input type", new: {})
  end

  check_html_views_for_errors

  describe "#left_type_for_nest_editor_set_selection" do
    def type_for_set_structure set_name
      Card.fetch("#{set_name}+*structure").format.left_type_for_nest_editor_set_selection
    end

    it "finds anchor name for type structure rules" do
      expect(type_for_set_structure("Role+*type")).to eq("Role")
    end

    it "finds anchor type for self structure rules" do
      expect(type_for_set_structure("Sign up+*self")).to eq("Cardtype")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
card-1.100.0 mod/rules/spec/set/rule/editor_spec.rb
card-1.99.6 mod/rules/spec/set/rule/editor_spec.rb
card-1.99.5 mod/rules/spec/set/rule/editor_spec.rb
card-1.99.4 mod/rules/spec/set/rule/editor_spec.rb
card-1.99.3 mod/rules/spec/set/rule/editor_spec.rb
card-1.99.2 mod/rules/spec/set/rule/editor_spec.rb
card-1.99.1 mod/rules/spec/set/rule/editor_spec.rb
card-1.99.0 mod/rules/spec/set/rule/editor_spec.rb