Test coverage around impressions for non-restful controller actions. Added dummy route, index method, view and dummy controller spec.

This commit is contained in:
Ty Rauber committed 2013-03-30 13:30:56 -07:00
1 parent 39c217a976
commit 495e0a4273
4 files changed
+12 -1

No files matched your search

@@ -3,4 +3,6 @@ class DummyController < ActionController::Base
impressionist
def index
end
end
Whitespace-only changes.
+1 -1
View File
@@ -1,3 +1,3 @@
TestApp::Application.routes.draw do
resources :articles, :posts, :widgets
resources :articles, :posts, :widgets, :dummy
end
@@ -123,3 +123,12 @@ describe WidgetsController do
end
end
describe DummyController do
fixtures :impressions
render_views
it "should log impression at the per action level on non-restful controller" do
get "index"
Impression.all.size.should eq 12
end
end