Skip to content
Snippets Groups Projects
Commit e8eda1eb authored by Ryan Senior's avatar Ryan Senior
Browse files

Add a few more missing `with-expected-message` calls

parent 538d9810
No related branches found
No related tags found
No related merge requests found
......@@ -577,7 +577,8 @@
(with-alert-setup
[(count ((user->client :rasta) :get 200 (format "alert/question/%d" card-id)))
(do
((user->client :rasta) :put 204 (format "alert/%d/unsubscribe" pulse-id))
(et/with-expected-messages 1
((user->client :rasta) :put 204 (format "alert/%d/unsubscribe" pulse-id)))
(count ((user->client :crowberto) :get 200 (format "alert/question/%d" card-id))))
(et/regex-email-bodies #"https://metabase.com/testmb"
#"Foo")]))
......@@ -602,7 +603,8 @@
(with-alert-setup
[(count ((user->client :rasta) :get 200 (format "alert/question/%d" card-id)))
(do
((user->client :rasta) :put 204 (format "alert/%d/unsubscribe" pulse-id))
(et/with-expected-messages 1
((user->client :rasta) :put 204 (format "alert/%d/unsubscribe" pulse-id)))
(count ((user->client :crowberto) :get 200 (format "alert/question/%d" card-id))))
(et/regex-email-bodies #"https://metabase.com/testmb"
#"Foo")]))
......@@ -627,7 +629,8 @@
(with-alert-setup
[(count ((user->client :rasta) :get 200 (format "alert/question/%d" card-id)))
(do
((user->client :rasta) :put 204 (format "alert/%d/unsubscribe" pulse-id))
(et/with-expected-messages 1
((user->client :rasta) :put 204 (format "alert/%d/unsubscribe" pulse-id)))
(count ((user->client :crowberto) :get 200 (format "alert/question/%d" card-id))))
(et/regex-email-bodies #"https://metabase.com/testmb"
#"Foo")]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment