Sha256: 76a234993b7a150eb33390fb2e726266b9e4b9b8ec92e09ea8343efaeceff449

Contents?: true

Size: 1.01 KB

Versions: 7

Compression:

Stored size: 1.01 KB

Contents

# -*- encoding : utf-8 -*-
require 'wagn/spec_helper'

describe Card::Set::Type::Set do
  
  describe :junction_only? do
    it "should identify sets that only apply to plus cards" do
      Card.fetch("*all").junction_only?.should be_false
      Card.fetch("*all plus").junction_only?.should be_true
      Card.fetch("Book+*type").junction_only?.should be_false
      Card.fetch("*to+*right").junction_only?.should be_true
      Card.fetch("Book+*to+*type plus right").junction_only?.should be_true
    end
  end
  
  describe :inheritable? do
    it "should identify sets that can inherit rules" do
      Card.fetch("A+*self").inheritable?.should be_false
      Card.fetch("A+B+*self").inheritable?.should be_true
      Card.fetch("Book+*to+*type plus right").inheritable?.should be_true
      Card.fetch("Book+*type").inheritable?.should be_false
      Card.fetch("*to+*right").inheritable?.should be_true
      Card.fetch("*all plus").inheritable?.should be_true
      Card.fetch("*all").inheritable?.should be_false
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wagn-1.12.13 spec/mods/standard/sets/type/set_spec.rb
wagn-1.12.12 spec/mods/standard/sets/type/set_spec.rb
wagn-1.12.11 spec/mods/standard/sets/type/set_spec.rb
wagn-1.12.10 spec/mods/standard/sets/type/set_spec.rb
wagn-1.12.9 spec/mods/standard/sets/type/set_spec.rb
wagn-1.12.8 spec/mods/standard/sets/type/set_spec.rb
wagn-1.12.7 spec/mods/standard/sets/type/set_spec.rb