@@ -397,6 +397,8 @@ describe AgentsController do |
||
397 | 397 |
it "accepts an event" do |
398 | 398 |
sign_in users(:bob) |
399 | 399 |
agent = agents(:bob_website_agent) |
400 |
+ agent.options['url_from_event'] = '{{ url }}' |
|
401 |
+ agent.save! |
|
400 | 402 |
url_from_event = "http://xkcd.com/?from_event=1".freeze |
401 | 403 |
expect { |
402 | 404 |
post :dry_run, id: agent, event: { url: url_from_event } |