Skip to content

Commit fce06c7

Browse files
authored
Merge pull request #6621 from NBKelly/drm-pending-test
2 parents bcaa266 + 27d80b1 commit fce06c7

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

test/clj/game/cards/operations_test.clj

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -901,17 +901,23 @@
901901
(is (= 3 (count (:discard (get-runner)))) "2 cards lost to brain damage")
902902
(is (= 3 (:brain-damage (get-runner))) "Brainchips didn't do additional brain dmg"))))
903903

904-
(deftest ^:kaocha/pending digital-rights-management-cannot-score-agenda-installed-after-playing
904+
(deftest digital-rights-management-cannot-score-agenda-installed-after-playing
905905
;; Cannot score Agenda installed after playing DRM
906906
(do-game
907907
(new-game {:corp {:hand [(qty "Digital Rights Management" 2) "Project Vitruvius" (qty "Hedge Fund" 2)]
908908
:deck [(qty "Project Beale" 2) (qty "Hedge Fund" 3)]}})
909909
(take-credits state :corp)
910910
(take-credits state :runner)
911911
(play-from-hand state :corp "Digital Rights Management")
912-
(click-prompt state :corp "None")
913-
(play-and-score state "Project Vitruvius")
914-
(is (= 0 (count (get-scored state :corp))) "Beale was not scored")))
912+
(click-prompt state :corp "Project Beale")
913+
(click-card state :corp "Project Vitruvius")
914+
(click-prompt state :corp "New remote")
915+
;; note - score-agenda fails if it finds the card wasn't scored,
916+
;; so we have to do this the hard way
917+
(let [vit (get-content state :remote1 0)]
918+
(core/add-prop state :corp (refresh vit) :advance-counter 3)
919+
(core/process-action "score" state :corp {:card (refresh vit)}))
920+
(is (= 0 (count (get-scored state :corp))) "Vitruvius was not scored")))
915921

916922
(deftest digital-rights-management-drm-only-searches-for-agendas-in-r-d
917923
;; DRM only searches for Agendas in R&D

0 commit comments

Comments
 (0)