#200: fixed specs
This commit is contained in:
parent
8d3d3c36f9
commit
391d5af18d
|
@ -11,6 +11,4 @@ describe Modules::Observers::ActivityFeed::Comment do
|
|||
mock(UserMailer).new_comment_notification(comment, comment.commentable.assignee) { mailer }
|
||||
comment.save
|
||||
end
|
||||
|
||||
before(:all) { User.destroy_all }
|
||||
end
|
||||
|
|
|
@ -27,6 +27,4 @@ describe Modules::Observers::ActivityFeed::Issue do
|
|||
mock(UserMailer).issue_assign_notification(issue, user) { mailer }
|
||||
issue.save
|
||||
end
|
||||
|
||||
before(:all) { User.destroy_all }
|
||||
end
|
||||
|
|
|
@ -37,6 +37,7 @@ def should_not_send_email(args={})
|
|||
end
|
||||
|
||||
describe Comment do
|
||||
self.use_transactional_fixtures = false
|
||||
before { stub_symlink_methods }
|
||||
context 'for global admin user' do
|
||||
before(:each) do
|
||||
|
|
|
@ -19,6 +19,7 @@ def create_comment_in_issue issue, body
|
|||
end
|
||||
|
||||
describe Comment do
|
||||
self.use_transactional_fixtures = false
|
||||
before { stub_symlink_methods }
|
||||
context 'for global admin user' do
|
||||
before(:each) do
|
||||
|
|
|
@ -13,6 +13,7 @@ def create_issue issue_owner
|
|||
end
|
||||
|
||||
describe Issue do
|
||||
self.use_transactional_fixtures = false
|
||||
before do
|
||||
stub_symlink_methods
|
||||
any_instance_of(Project, :versions => ['v1.0', 'v2.0'])
|
||||
|
|
|
@ -30,6 +30,7 @@ RSpec.configure do |config|
|
|||
|
||||
config.before(:all) { init_test_root }
|
||||
config.after(:all) { clear_test_root }
|
||||
config.after(:all) { User.destroy_all }
|
||||
end
|
||||
|
||||
def set_session_for(user=nil)
|
||||
|
|
Loading…
Reference in New Issue