summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-09-21 17:04:03 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2023-09-21 17:04:03 +0200
commitfcb4a526a76e0e8464fc42a92145fe0ed149026b (patch)
treeed46af8dab2e98801c4ed99da36c77390b2e9c1d /spec
parentca128a74ae0f238b9ba81df68ed26e3b9a223e1e (diff)
downloadcolonial-twilight-fcb4a526a76e0e8464fc42a92145fe0ed149026b.zip
colonial-twilight-fcb4a526a76e0e8464fc42a92145fe0ed149026b.tar.gz
Deck : add Card::capability? && specs
Diffstat (limited to 'spec')
-rw-r--r--spec/cards_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/cards_spec.rb b/spec/cards_spec.rb
index 12ffb24..10efaee 100644
--- a/spec/cards_spec.rb
+++ b/spec/cards_spec.rb
@@ -43,6 +43,14 @@ describe ColonialTwilight::Card do
end
end
+ describe 'any capability' do
+ deck = ColonialTwilight::Deck.new
+ s = [13, 17, 18, 27, 32, 33, 35]
+ 1.upto(71) do |n|
+ it "is flags right #{n}" do expect(deck.pull(n).capability?).to be s.include?(n) end
+ end
+ end
+
describe 'FLN momentum' do
deck = ColonialTwilight::Deck.new
s = [2, 8, 10, 29, 40, 45]