Commit 05a6a706

mo khan <mo@mokhan.ca>
2013-03-19 04:38:35
fix broken spec
1 parent 9384e07
Changed files (1)
spec/controllers/categories_controller_spec.rb
@@ -12,11 +12,8 @@ describe CategoriesController do
       before(:each) do
         get :show, :id => "!#{@category.slug}"
       end
-      it "should not return a category" do
-        assigns(:category).should be_nil
-      end
-      it "should not return any creations" do
-        assigns(:creations).should be_empty
+      it "should redirect to tags" do
+        response.should redirect_to("/tags/!#{@category.slug}")
       end
     end
     context "when there is a category that matches the slug" do