Sha256: 5c5fb5e2466d56ba3bc1cb1b4e0285d34ac3f777e00d85bbac618b9d862904d7

Contents?: true

Size: 856 Bytes

Versions: 5

Compression:

Stored size: 856 Bytes

Contents

require 'fileutils'
require 'dotenv/load'
require_relative "../../lib/cranium"

FileUtils.mkdir_p("log") unless Dir.exists?("log")

Cranium.configure do |config|
  config.greenplum_connection_string = "postgres://cranium:cranium@#{ENV['DATABASE_HOST'] || '192.168.56.43'}:5432/cranium"
  config.gpfdist_url = "#{ENV['DATABASE_HOST'] || '192.168.56.43'}:8123"
  config.gpfdist_home_directory = "tmp/custdata"
  config.upload_directory = "cranium_build"
  config.loggers << Logger.new("log/cucumber.log")
end


Before do
  FileUtils.rm_rf Cranium.configuration.upload_path
  FileUtils.mkdir_p Cranium.configuration.upload_path
end

After do
  Cranium::TestFramework::DatabaseTable.cleanup
  Cranium::TestFramework::DatabaseSequence.cleanup
end

World do
  Cranium::TestFramework::World.new Cranium.configuration.upload_path, Cranium::Database.connection
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cranium-0.8 features/support/env.rb
cranium-0.7 features/support/env.rb
cranium-0.6.1 features/support/env.rb
cranium-0.5 features/support/env.rb
cranium-0.4.3 features/support/env.rb