Sha256: 0dc1755f87cd85d5ace6426e7bfda2d390edc5932f3dc21698b00d67a47bf44c

Contents?: true

Size: 1.05 KB

Versions: 44

Compression:

Stored size: 1.05 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

44 entries across 44 versions & 2 rubygems

Version Path
card-1.17.4 mod/05_standard/spec/set/type/set_spec.rb
card-1.17.3 mod/05_standard/spec/set/type/set_spec.rb
card-1.17.2 mod/05_standard/spec/set/type/set_spec.rb
card-1.17.1 mod/05_standard/spec/set/type/set_spec.rb
card-1.17.0 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.15 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.14 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.13 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.12 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.11 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.10 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.9 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.8 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.7 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.6 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.5 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.4 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.3 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.2 mod/05_standard/spec/set/type/set_spec.rb
card-1.16.1 mod/05_standard/spec/set/type/set_spec.rb