Sha256: e46ab74e6b4c83a09d1c42854033bd4480e771be5d0aa63f62e326c34292bba3
Contents?: true
Size: 1.38 KB
Versions: 3
Compression:
Stored size: 1.38 KB
Contents
Feature: The dump command Most aspects of connection to a server are tested in shell feature. Scenario: Creating a dump of the development database When I run `geordi dump` Then the output should contain "Util.system! dumple development" And the output should contain "Successfully dumped the development database" Scenario: Creating a dump of a remote database Given a file named "Capfile" with "Capfile exists" And a file named "config/deploy.rb" with: """ """ And a file named "config/deploy/staging.rb" with: """ set :rails_env, 'staging' set :deploy_to, '/var/www/example.com' set :user, 'user' server 'www.example.com' """ When I run `geordi dump staging` Then the output should contain "# Dumping the database of staging" And the output should contain "> Connecting to www.example.com" And the output should contain "Util.system! ssh, user@www.example.com, -t, cd /var/www/example.com/current && bash --login -c 'dumple staging --for_download'" And the output should contain "> Downloading remote dump to tmp/staging.dump" # Omitting the absolute path in this regex (.*) And the output should match %r<Util.system! scp -C user@www.example.com:~/dumps/dump_for_download.dump .*/tmp/aruba/tmp/staging.dump> And the output should contain "> Dumped the staging database to tmp/staging.dump"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
geordi-2.2.0 | features/dump.feature |
geordi-2.1.0 | features/dump.feature |
geordi-2.0.0 | features/dump.feature |