Integrate auction

Closes #874
This commit is contained in:
Artur Beljajev 2018-11-29 15:08:22 +02:00
parent 640faaadb9
commit 42e8f86dae
51 changed files with 1619 additions and 53 deletions

View file

@ -0,0 +1,19 @@
require 'test_helper'
class ReleaseDomainsTaskTest < ActiveSupport::TestCase
setup do
@domain = domains(:shop)
end
def test_output
@domain.update!(delete_at: Time.zone.parse('2010-07-05 07:59'))
travel_to Time.zone.parse('2010-07-05 08:00')
assert_output("shop.test is released\nReleased total: 1\n") { run_task }
end
private
def run_task
Rake::Task['domains:release'].execute
end
end