summaryrefslogtreecommitdiffstats
path: root/spec/fln_bot_rules_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fln_bot_rules_spec.rb')
-rw-r--r--spec/fln_bot_rules_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/fln_bot_rules_spec.rb b/spec/fln_bot_rules_spec.rb
index fed7b24..612e32d 100644
--- a/spec/fln_bot_rules_spec.rb
+++ b/spec/fln_bot_rules_spec.rb
@@ -294,6 +294,18 @@ describe ColonialTwilight::FLNBotRules do
expect(@rules.may_rally_6_in?(a, false)).to be true
end
+ it 'may_rally_6_in? pop 2+ and control but oppose' do
+ a = Sector.new(pop: 2, gov_cubes: 1, fln_active: 1, oppose: true)
+ @board.available_fln_underground = 1
+ expect(@rules.may_rally_6_in?(a, false)).to be false
+ end
+
+ it 'may_rally_6_in? pop 2+ and control but oppose but terror' do
+ a = Sector.new(pop: 2, gov_cubes: 1, fln_active: 1, oppose: true, terror: 1)
+ @board.available_fln_underground = 1
+ expect(@rules.may_rally_6_in?(a, false)).to be true
+ end
+
it 'rally_6_priority population' do
a = Sector.new(pop: 2)
b = Sector.new(pop: 1)