Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cleaning-portalmec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Fernando Heise Ferreira
cleaning-portalmec
Commits
4e0a58a8
Commit
4e0a58a8
authored
8 years ago
by
Mauricio Giacomini Girardello
Browse files
Options
Downloads
Patches
Plain Diff
disable public activity gem for testing purpouses
parent
76a28f3f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/models/tag_test.rb
+0
-5
0 additions, 5 deletions
test/models/tag_test.rb
test/test_helper.rb
+4
-0
4 additions, 0 deletions
test/test_helper.rb
with
4 additions
and
5 deletions
test/models/tag_test.rb
+
0
−
5
View file @
4e0a58a8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
test/test_helper.rb
+
4
−
0
View file @
4e0a58a8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment