spec/lib/landable/event_publisher_spec.rb in landable-1.13.1 vs spec/lib/landable/event_publisher_spec.rb in landable-1.13.2

- old
+ new

@@ -1,11 +1,10 @@ require 'spec_helper' module Landable module Traffic describe 'EventPublisher', type: :controller do - controller(ApplicationController) do include Landable::Traffic prepend_around_action :track_with_landable! def my_path @@ -13,11 +12,11 @@ end end before do routes.draw do - get "/my_path" => 'anonymous#my_path' + get '/my_path' => 'anonymous#my_path' post '/my_path' => 'anonymous#my_path' delete '/my_path' => 'anonymous#my_path' end end @@ -37,10 +36,9 @@ let(:page_view) { PageView.last } let(:published_message) { EventPublisher.publish(page_view) } it 'should properly properly set the attribution data and send it within a message' do get :my_path, attribution - # binding.pry message_keys.each do |attribute| expect(published_message[attribute]).to eq("test_#{attribute}") end end