impressionist/spec/controllers/dummy_controller_spec.rb

14 lines
285 B
Ruby

# frozen_string_literal: false
require 'spec_helper'
describe DummyController, type: :controller do
fixtures :impressions
render_views
it 'logs impression at the per action level on non-restful controller' do
get 'index'
expect(Impression.all.size).to eq 12
end
end