summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/board_spec.rb6
-rw-r--r--spec/fln_rules_spec.rb4
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/board_spec.rb b/spec/board_spec.rb
index 4f0e7aa..21a48fc 100644
--- a/spec/board_spec.rb
+++ b/spec/board_spec.rb
@@ -87,8 +87,8 @@ describe ColonialTwilight::Board do
it 'has fln 2 pop' do expect(board.has { |s| s.pop == 2 && s.fln.positive? }).to be true end
it 'has fln 3 pop' do expect(board.has { |s| s.pop == 3 && s.fln.positive? }).to be false end
it 'count fln_bases' do expect(board.count(&:fln_bases)).to eq(8) end
- it 'count fln with bases' do expect(board.count { |s| s.fln_bases.zero? ? 0 : s.fln_cubes }).to eq(13) end
- it 'count fln without bases' do expect(board.count { |s| s.fln_bases.zero? ? s.fln_cubes : 0 }).to eq(4) end
- it 'count fln in country' do expect(board.count { |s| s.country? ? s.fln_cubes : 0 }).to eq(9) end
+ it 'count fln with bases' do expect(board.count { |s| s.fln_bases.zero? ? 0 : s.guerrillas }).to eq(13) end
+ it 'count fln without bases' do expect(board.count { |s| s.fln_bases.zero? ? s.guerrillas : 0 }).to eq(4) end
+ it 'count fln in country' do expect(board.count { |s| s.country? ? s.guerrillas : 0 }).to eq(9) end
end
end
diff --git a/spec/fln_rules_spec.rb b/spec/fln_rules_spec.rb
index 90fc708..9a8c39c 100644
--- a/spec/fln_rules_spec.rb
+++ b/spec/fln_rules_spec.rb
@@ -28,14 +28,14 @@ describe ColonialTwilight::FLNRules do
it 'may place 1 FLN cube' do
@board.load :short
space = @board.by_name('Mostaganem')
- expect(rules.max_placable_flns(space)).to eq(1)
+ expect(rules.max_placable_guerrillas(space)).to eq(1)
end
it 'may place 2 FLN cube' do
@board.load :short
space = @board.by_name('Orleansville')
space.add :fln_base
- expect(rules.max_placable_flns(space)).to eq(3)
+ expect(rules.max_placable_guerrillas(space)).to eq(4)
end
end