Fixed failing tests and added deployment complete email

This commit is contained in:
Godwin
2017-06-11 17:32:43 -07:00
parent eb4b3c44d6
commit e5ecf221f6
7 changed files with 63 additions and 40 deletions
+8
View File
@@ -89,6 +89,14 @@ task "cucumber:debug" do
ENV['TEST_DEBUG'] = nil
end
task deploy: :environment do
if Rails.env.preview? || Rails.env.production?
UserMailer.delay(queue: Rails.env.to_s).server_startup(Rails.env.to_s)
else
UserMailer.server_startup(Rails.env.to_s).deliver_now
end
end
namespace :cucumber do
FAILING_CUCUMBER_SCENARIOS_FILENAME = 'log/rerun.txt'