Sha256: 48d5bcb4aa3afe2f3dc6c03b5af4a48311c74d1c838f22e0b693711afed9bace

Contents?: true

Size: 1.06 KB

Versions: 10

Compression:

Stored size: 1.06 KB

Contents

require 'spec_helper'

describe "Deploying an application with sqlite3 as the only DB adapter in the Gemfile.lock" do
  before(:all) do
    @release_path  = nil
    @shared_path   = nil
    @framework_env = nil

    deploy_test_application('sqlite3') do |deployer|
      @shared_path   = deployer.config.paths.shared
      @release_path  = deployer.config.paths.active_release
      @framework_env = deployer.framework_env
    end
  end

  it 'should symlink database.sqlite3.yml' do
    @release_path.join('config', 'database.yml').should exist
  end

  it 'should create database.sqlite3.yml in a shared location' do
    @shared_path.join('config', 'database.sqlite3.yml').should exist
  end

  it 'should put a reference to a shared database in database.sqlite3.yml' do
    contents = @release_path.join('config', 'database.yml').read
    contents.should include(@shared_path.join('databases', "#{@framework_env}.sqlite3").expand_path.to_s)
  end

  it 'should create the shared database' do
    @shared_path.join('databases', "#{@framework_env}.sqlite3").should exist
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
engineyard-serverside-2.0.7 spec/sqlite3_deploy_spec.rb
engineyard-serverside-2.0.6 spec/sqlite3_deploy_spec.rb
engineyard-serverside-2.0.5 spec/sqlite3_deploy_spec.rb
engineyard-serverside-2.0.5.pre spec/sqlite3_deploy_spec.rb
engineyard-serverside-2.0.4 spec/sqlite3_deploy_spec.rb
engineyard-serverside-2.0.3 spec/sqlite3_deploy_spec.rb
engineyard-serverside-2.0.2 spec/sqlite3_deploy_spec.rb
engineyard-serverside-2.0.1 spec/sqlite3_deploy_spec.rb
engineyard-serverside-2.0.0 spec/sqlite3_deploy_spec.rb
engineyard-serverside-2.0.0.rc1 spec/sqlite3_deploy_spec.rb