Sha256: 0654b3bac3cab11141a181272b69e6ceab2a056317f164dae0238db3d937ae60

Contents?: true

Size: 1.05 KB

Versions: 26

Compression:

Stored size: 1.05 KB

Contents

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

describe Card::Set::Type::Set do
  describe :junction_only? do
    it "identifies 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 "identifies 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

26 entries across 26 versions & 1 rubygems

Version Path
card-1.94.1 mod/standard/spec/set/type/set_spec.rb
card-1.94.0 mod/standard/spec/set/type/set_spec.rb
card-1.93.13 mod/standard/spec/set/type/set_spec.rb
card-1.93.12 mod/standard/spec/set/type/set_spec.rb
card-1.93.11 mod/standard/spec/set/type/set_spec.rb
card-1.93.10 mod/standard/spec/set/type/set_spec.rb
card-1.93.9 mod/standard/spec/set/type/set_spec.rb
card-1.93.8 mod/standard/spec/set/type/set_spec.rb
card-1.93.7 mod/standard/spec/set/type/set_spec.rb
card-1.93.6 mod/standard/spec/set/type/set_spec.rb
card-1.93.5 mod/standard/spec/set/type/set_spec.rb
card-1.93.4 mod/standard/spec/set/type/set_spec.rb
card-1.93.3 mod/standard/spec/set/type/set_spec.rb
card-1.93.2 mod/standard/spec/set/type/set_spec.rb
card-1.93.1 mod/standard/spec/set/type/set_spec.rb
card-1.93.0 mod/standard/spec/set/type/set_spec.rb
card-1.92.2 mod/standard/spec/set/type/set_spec.rb
card-1.92.1 mod/standard/spec/set/type/set_spec.rb
card-1.92 mod/standard/spec/set/type/set_spec.rb
card-1.91 mod/standard/spec/set/type/set_spec.rb