require 'spec_helper' describe Agents::EventFormattingAgent do before do @valid_params = { :name => "somename", :options => { :instructions => { :message => "Received {{content.text}} from {{content.name}} .", :subject => "Weather looks like {{conditions}} according to the forecast at {{pretty_date.time}}", :agent => "{{agent.type}}", }, :mode => "clean", :matchers => [ { :path => "{{date.pretty}}", :regexp => "\\A(?