Sha256: 55e225a539b0b1efafb9a6aeb5834ec5835058176d759aff76460ab7cd23ed46

Contents?: true

Size: 1.06 KB

Versions: 7

Compression:

Stored size: 1.06 KB

Contents

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

describe Card::Set::Type::Set do
  describe :junction_only? do
    it "should identify sets that only apply to plus cards" do
      expect(Card.fetch("*all").junction_only?).to be_falsey
      expect(Card.fetch("*all plus").junction_only?).to be_truthy
      expect(Card.fetch("Book+*type").junction_only?).to be_falsey
      expect(Card.fetch("*to+*right").junction_only?).to be_truthy
      expect(Card.fetch("Book+*to+*type plus right").junction_only?)
        .to be_truthy
    end
  end

  describe :inheritable? do
    it "should identify sets that can inherit rules" do
      expect(Card.fetch("A+*self").inheritable?).to be_falsey
      expect(Card.fetch("A+B+*self").inheritable?).to be_truthy
      expect(Card.fetch("Book+*to+*type plus right").inheritable?).to be_truthy
      expect(Card.fetch("Book+*type").inheritable?).to be_falsey
      expect(Card.fetch("*to+*right").inheritable?).to be_truthy
      expect(Card.fetch("*all plus").inheritable?).to be_truthy
      expect(Card.fetch("*all").inheritable?).to be_falsey
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
card-1.19.6 mod/standard/spec/set/type/set_spec.rb
card-1.19.5 mod/standard/spec/set/type/set_spec.rb
card-1.19.4 mod/standard/spec/set/type/set_spec.rb
card-1.19.3 mod/standard/spec/set/type/set_spec.rb
card-1.19.2 mod/standard/spec/set/type/set_spec.rb
card-1.19.1 mod/standard/spec/set/type/set_spec.rb
card-1.19.0 mod/standard/spec/set/type/set_spec.rb