#200: fixed specs

This commit is contained in:
Vokhmin Alexey V 2013-06-27 23:10:11 +04:00
parent 8d3d3c36f9
commit 391d5af18d
6 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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'])

View File

@ -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)