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.rb15
1 files changed, 11 insertions, 4 deletions
diff --git a/spec/fln_bot_rules_spec.rb b/spec/fln_bot_rules_spec.rb
index 5f3c3c3..2fe0216 100644
--- a/spec/fln_bot_rules_spec.rb
+++ b/spec/fln_bot_rules_spec.rb
@@ -450,11 +450,18 @@ describe ColonialTwilight::FLNBotRules do
expect(@rules.may_rally_9_in?(a)).to be true
end
- it 'rally_9_priority no cubes' do
+ it 'rally_9_priority support' do
a = Sector.new(terror: 1, oppose: true)
- b = Sector.new(terror: 2, neutral: true)
- c = Sector.new(terror: 1, neutral: true)
- expect(@rules.rally_9_priority([a, b, c], 2)[0]).to be c
+ b = Sector.new(terror: 3, support: true)
+ c = Sector.new(terror: 2, support: true)
+ expect(@rules.rally_9_priority([a, b, c], 3)[0]).to be c
+ end
+
+ it 'rally_9_priority neutral' do
+ a = Sector.new(terror: 1, oppose: true)
+ b = Sector.new(terror: 3, neutral: true)
+ c = Sector.new(terror: 2, neutral: true)
+ expect(@rules.rally_9_priority([a, b, c], 3)[0]).to be c
end
end