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