ifttt_spec Pub

Testing rest snakking

0 $mock:: ifttt.event1 (p1, p2)
   . (res="Congrat", ev="event1")
msg POST ifttt.event1  (p1, p2)

{{template ifttt.event1:regex=/(?<res>[^!]*).*fired the (?<ev>[^!]*) event/}} (view)

0 $mock:: ifttt.receiveEmail (from)
   . (result="ok")

$when:: ifttt.receiveEmail (from)
   ifttt.sendEmail

0 $mock:: ifttt.sendEmail (from)
   . (result="ok")
msg POST ifttt.sendEmail  (from, p2)

{{template ifttt.sendEmail:regex=/(?<res>[^!]*).*fired the (?<ev>[^!]*) event/}} (view)


Was this useful?    

By: Razie | 2017-03-27 | Tags: spec , dsl


Viewed 121 times ( | Print ) this page.

You need to log in to post a comment!

© Copyright DieselApps, 2012-2020, all rights reserved.