Sha256: 16afe1c1b49765a52b734c924df670c1c1f1a192db8ac75cdb25329ece1dc1e0
Contents?: true
Size: 873 Bytes
Versions: 1
Compression:
Stored size: 873 Bytes
Contents
require 'test_helper' class HerokuPullTest < Test::Unit::TestCase def setup stub(HerokuPull).puts end def test_capture expected_cmd = "heroku pgbackups:capture --expire" mock(HerokuPull).system expected_cmd HerokuPull.capture end def test_download expected_cmd = "wget -O ./tmp/heroku_pull.sql `heroku pgbackups:url`" mock(HerokuPull).system expected_cmd HerokuPull.download end def test_restore stub(HerokuPull).database { "test_db" } expected_cmd = "pg_restore --verbose --clean --no-acl --no-owner -h localhost -d test_db ./tmp/heroku_pull.sql" mock(HerokuPull).system expected_cmd HerokuPull.restore end def test_filename assert_equal "./tmp/heroku_pull.sql", HerokuPull.filename end def test_database assert_equal "test_db", HerokuPull.database('test/config/database.yml') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heroku_pull-0.0.1 | test/cases/heroku_pull_test.rb |