From 98e0b2925dafa41175beff014b1cf1e3bc4d6d02 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Tue, 29 Jan 2013 17:20:28 +0400 Subject: [PATCH] #860: revert some changes --- spec/models/build_list_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/build_list_spec.rb b/spec/models/build_list_spec.rb index ab3684638..9e6172c4d 100644 --- a/spec/models/build_list_spec.rb +++ b/spec/models/build_list_spec.rb @@ -26,12 +26,12 @@ describe BuildList do :project => build_list.project) } - before { ActionMailer::Base.deliveries = [] } + before(:all) { ActionMailer::Base.deliveries = [] } before do build_list.update_attributes({:commit_hash => build_list.project.repo.commits('master').last.id, :status => BuildList::BUILD_STARTED}, :without_protection => true) end - after(:all) { ActionMailer::Base.deliveries = [] } + after { ActionMailer::Base.deliveries = [] } shared_examples_for 'build list notifications by email' do it "gets notification by email when status - Build complete" do