fix spec

Andrew Cantino 8 years ago
parent
commit
a68775fd99
1 changed files with 2 additions and 0 deletions
  1. 2 0
      spec/controllers/agents_controller_spec.rb

+ 2 - 0
spec/controllers/agents_controller_spec.rb

@@ -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 }