Sha256: 9e721894caac4b7364534d88cc0cc1bdd7f803bdcee8bbbcc04061f5ad3df142

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

require "spec_helper"

describe "using the databases api" do
  include_context "netrc"

  context "to create" do
    When { VCR.use_cassette('databases/create') { run "rumm create database on dbinstance decided-irony --name dancing-bear" }}
    Then { all_stdout =~ /Created database/ }
    And { last_exit_status.should eql 0 }
  end

  context "to show" do
    When { VCR.use_cassette('databases/show') { run "rumm show database dancing-bear on dbinstance decided-irony" }}
    Then { all_stdout =~ /dancing-bear/ }
    And { last_exit_status.should eql 0 }
  end

  context "to show all" do
    When { VCR.use_cassette('databases/show-all') { run "rumm show databases on dbinstance decided-irony" }}
    Then { all_stdout =~ /Databases/}
    And { last_exit_status.should eql 0 }
  end

  context "to destroy" do
    When { VCR.use_cassette('databases/destroy') { run "rumm destroy database dancing-bear on dbinstance decided-irony" }}
    Then { all_stdout =~ /Destroyed/}
    And { last_exit_status.should eql 0 }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rumm-0.0.23 spec/features/databases_spec.rb