Actualizar plugin Additionals a 3.0.0
This commit is contained in:
parent
3d976f1b3b
commit
a26f5567af
399 changed files with 70374 additions and 4093 deletions
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path('../../test_helper', __FILE__)
|
||||
require File.expand_path '../../test_helper', __FILE__
|
||||
|
||||
class WatcherTest < Additionals::TestCase
|
||||
fixtures :projects, :users, :email_addresses, :members, :member_roles, :roles, :enabled_modules,
|
||||
|
@ -9,15 +9,15 @@ class WatcherTest < Additionals::TestCase
|
|||
|
||||
def setup
|
||||
prepare_tests
|
||||
@author = users(:users_001)
|
||||
@assigned_user = users(:users_002)
|
||||
@changing_user = users(:users_004)
|
||||
@author = users :users_001
|
||||
@assigned_user = users :users_002
|
||||
@changing_user = users :users_004
|
||||
end
|
||||
|
||||
def test_new_issue_with_no_autowatch
|
||||
with_additionals_settings(issue_autowatch_involved: 0) do
|
||||
with_additionals_settings issue_autowatch_involved: 0 do
|
||||
User.current = @author
|
||||
issue = Issue.generate(author_id: @author.id)
|
||||
issue = Issue.generate author_id: @author.id
|
||||
issue.save
|
||||
assert_equal 0, issue.watchers.count
|
||||
assert_not issue.watched_by?(@author)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue