From f4dafd8f9710892e6d3c54bc5b55754939c3725a Mon Sep 17 00:00:00 2001 From: Tim Riley Date: Mon, 22 Jan 2024 22:01:26 +1100 Subject: [PATCH] Test Spirit creature remaining on the battlefield --- spec/cards/roaming_ghostlight_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/cards/roaming_ghostlight_spec.rb b/spec/cards/roaming_ghostlight_spec.rb index 27b96c8..1cdae67 100644 --- a/spec/cards/roaming_ghostlight_spec.rb +++ b/spec/cards/roaming_ghostlight_spec.rb @@ -4,7 +4,8 @@ include_context "two player game" before do - ResolvePermanent("Wood Elves", owner: p2) + ResolvePermanent("Wood Elves", owner: p2) # Non-spirit creature + ResolvePermanent("Wandering Ones", owner: p2) # Spirit creature end context "when it enters the battlefield" do @@ -12,6 +13,9 @@ ResolvePermanent("Roaming Ghostlight", owner: p1) expect(p2.hand.by_name("Wood Elves").count).to eq(1) + + expect(game.battlefield.creatures.by_name("Wandering Ones").count).to eq(1) + expect(p2.hand.by_name("Wandering Ones").count).to eq(0) end end end