Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
portalmec
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
PortalMEC
portalmec
Commits
4e0a58a8
Commit
4e0a58a8
authored
May 04, 2016
by
Mauricio Giacomini Girardello
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable public activity gem for testing purpouses
parent
76a28f3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
test/models/tag_test.rb
test/models/tag_test.rb
+0
-5
test/test_helper.rb
test/test_helper.rb
+4
-0
No files found.
test/models/tag_test.rb
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
...
...
test/test_helper.rb
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment