From e0144d0e4639089b9da05894dd571bb08cf3a2ed Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 19 May 2021 23:20:19 +0100 Subject: [PATCH] specs: Test ResetFromNamesSpec (adhoc) Signed-off-by: Ian Jackson --- apitest/at-bundles.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apitest/at-bundles.rs b/apitest/at-bundles.rs index e56bcd09..ad2f9c1f 100644 --- a/apitest/at-bundles.rs +++ b/apitest/at-bundles.rs @@ -20,12 +20,23 @@ impl Ctx { "big-bundle","duped-example", "chess-purple-cannon", "a purple cannon" )?; } + + #[throws(Explode)] + fn builtin_spec(&mut self) { + self.su().mgmt_conn.borrow_mut().alter_game( + vec![ MGI::ResetFromNamedSpec { + spec: "demo".to_owned(), + }], + None, + )?; + } } #[throws(Explode)] fn tests(mut c: Ctx) { test!(c, "bundles", c.bundles() ?); test!(c, "big", c.big() ?); + test!(c, "builtin-spec", c.builtin_spec() ?); } #[throws(Explode)] -- 2.30.2