diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-09-29 23:19:03 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-09-29 23:19:03 +0200 |
commit | bea6db6fc5536293875309ec8fbb6776ecbb59d5 (patch) | |
tree | d7fe53737d214486a1bda3a41990319ae86c02f3 /spec | |
parent | fe25d4bf82f4d0d3de0f8db44da93829eac6b44c (diff) | |
download | colonial-twilight-bea6db6fc5536293875309ec8fbb6776ecbb59d5.zip colonial-twilight-bea6db6fc5536293875309ec8fbb6776ecbb59d5.tar.gz |
Specs : complete Card specs
Diffstat (limited to 'spec')
-rw-r--r-- | spec/cards_spec.rb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/cards_spec.rb b/spec/cards_spec.rb index da9d578..cffabfc 100644 --- a/spec/cards_spec.rb +++ b/spec/cards_spec.rb @@ -76,4 +76,34 @@ describe ColonialTwilight::Card do it "is flags right #{n}" do expect(@deck.pull(n).dual_momentum?).to be s.include?(n) end end end + + describe 'FLN marked' do + s = [3, 7, 9, 10, 11, 12, 14, 18, 19, 20, 22, 23, 24, 26, 28, + 31, 33, 34, 35, 36, 41, 42, 43, 47, 48, 49, 51, 53, 54, 55, 56, 57, 59, 60] + 1.upto(71) do |n| + it "is flags right #{n}" do expect(@deck.pull(n).fln_marked?).to be s.include?(n) end + end + end + + describe 'Special' do + s = [12, 20, 49, 51, 54, 56] + 1.upto(71) do |n| + it "is flags right #{n}" do expect(@deck.pull(n).special?).to be s.include?(n) end + end + end + + describe 'Dual' do + s = [4, 9, 14, 18, 20, 25, 28, 30, 52, 54, 56, 57, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71] + 1.upto(71) do |n| + it "is flags right #{n}" do expect(@deck.pull(n).dual?).to be !s.include?(n) end + end + end + + describe 'Inspect' do + it 'GOV-momentum' do expect((@deck.pull(45).inspect =~ /GOV-momentum/).nil?).to be false end + it 'FLN-momentum' do expect((@deck.pull(45).inspect =~ /FLN-momentum/).nil?).to be false end + it 'capability' do expect((@deck.pull(45).inspect =~ /capability/).nil?).to be true end + it 'capability' do expect((@deck.pull(18).inspect =~ /momentum/).nil?).to be true end + it 'capability' do expect((@deck.pull(18).inspect =~ /FLN-capability/).nil?).to be true end + end end |