disable public activity gem for testing purpouses

parent 76a28f3f
......@@ -2,7 +2,6 @@ require 'test_helper'
class TagTest < ActiveSupport::TestCase
should have_many :taggings
should validate_presence_of :name
test 'an user can tag a learning object' do
......@@ -13,7 +12,6 @@ class TagTest < ActiveSupport::TestCase
# check lo_one tags
assert_count 2, lo.tags
assert_count 2, john.taggings
end
test 'an user can untag a learning object' do
......@@ -24,7 +22,6 @@ class TagTest < ActiveSupport::TestCase
# check lo_one tags
assert_count 1, lo.tags
assert_count 1, john.taggings
end
test 'an user can tag a collection' do
......@@ -35,7 +32,6 @@ class TagTest < ActiveSupport::TestCase
# check ufpr tags
assert_count 3, collection.tags
assert_count 2, john.taggings
end
test 'an user can untag a collection' do
......@@ -46,7 +42,6 @@ class TagTest < ActiveSupport::TestCase
# check ufpr tags
assert_count 2, collection.tags
assert_count 1, john.taggings
end
......
......@@ -4,6 +4,10 @@ require 'rails/test_help'
require 'minitest/mock'
require 'minitest/reporters'
# disable public activity gem for testing purpouses
require 'public_activity/testing'
PublicActivity.enabled = false
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment