Skip to content

Commit

Permalink
Merge pull request #502 from timriley/expand-test-for-roaming-ghostlight
Browse files Browse the repository at this point in the history
Test Spirit creature remaining on the battlefield
  • Loading branch information
radar authored Jan 22, 2024
2 parents 453bee8 + f4dafd8 commit 388d48c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/cards/roaming_ghostlight_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@
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
it "returns non-Spirit creature to its owner's hand" do
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

0 comments on commit 388d48c

Please sign in to comment.