Commit 227882b0

mo khan <mo@mokhan.ca>
2014-08-28 02:26:11
remove more unused fields.
1 parent 63a7ad7
Changed files (2)
app/controllers/creation_tags_controller.rb
@@ -5,8 +5,6 @@ class CreationTagsController < ApplicationController
 
   def show
     @tag = params[:id].downcase.gsub(/ /, '-')
-    @total_tutorials = Tutorial.tagged_with(@tag).count
-    @total_creations = Creation.tagged_with(@tag).count
     @creations = Creation.includes([:user, :tags, :photos]).tagged_with([@tag]).where('photos_count > 0').page(params[:page]).per(12)
   end
 end
spec/controllers/creation_tags_controller_spec.rb
@@ -26,15 +26,7 @@ describe CreationTagsController do
     before :each do
       user.tag(tagged_tutorial, :with => tag, :on => :tags)
       user.tag(tagged_cake, :with => tag, :on => :tags)
-      get :show, :id => tag
-    end
-
-    it "should include the total tutorials tagged" do
-      assigns(:total_tutorials).should == 1
-    end
-
-    it "should include the total creations tagged" do
-      assigns(:total_creations).should == 1
+      get :show, id: tag
     end
 
     it "should return each cake that is tagged" do