Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/magic/cards/walking_corpse.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Magic
module Cards
WalkingCorpse = Creature("Walking Corpse") do
creature_type("Zombie")
cost black: 1, generic: 1
power 2
toughness 2
end
end
end
11 changes: 11 additions & 0 deletions spec/cards/walking_corpse_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'spec_helper'

RSpec.describe Magic::Cards::WalkingCorpse do
include_context "two player game"

let!(:walking_corpse) { ResolvePermanent("Walking Corpse", owner: p1) }

it "is a zombie" do
expect(walking_corpse.card.type_line).to eq("Creature -- Zombie")
end
end