remove references to tag subscriptions

This commit is contained in:
r888888888
2017-11-17 13:45:17 -08:00
parent 09234dca4f
commit e70c2a3085
17 changed files with 1 additions and 200 deletions

View File

@@ -1,39 +0,0 @@
require 'test_helper'
class TagSubscriptionsControllerTest < ActionController::TestCase
context "The tag subscriptions controller" do
setup do
@user = FactoryGirl.create(:user)
CurrentUser.user = @user
CurrentUser.ip_addr = "127.0.0.1"
end
teardown do
CurrentUser.user = nil
CurrentUser.ip_addr = nil
end
context "index action" do
setup do
@tag_subscription = FactoryGirl.create(:tag_subscription, :name => "aaa")
end
should "list all visible tag subscriptions" do
get :index
assert_response :success
end
end
context "destroy action" do
setup do
@tag_subscription = FactoryGirl.create(:tag_subscription)
end
should "destroy the posts" do
assert_difference("TagSubscription.count", -1) do
post :destroy, {:id => @tag_subscription.id}, {:user_id => @user.id}
end
end
end
end
end