2020-07-20 13:35:41 +00:00
|
|
|
# frozen_string_literal: false
|
|
|
|
|
2013-07-06 19:20:35 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-07-20 13:35:41 +00:00
|
|
|
describe DummyController, type: :controller do
|
2013-07-06 19:20:35 +00:00
|
|
|
fixtures :impressions
|
|
|
|
render_views
|
|
|
|
|
2020-07-20 13:35:41 +00:00
|
|
|
it 'logs impression at the per action level on non-restful controller' do
|
|
|
|
get 'index'
|
|
|
|
expect(Impression.all.size).to eq 12
|
2013-07-06 19:20:35 +00:00
|
|
|
end
|
|
|
|
end
|