Sha256: 49e261872997d603e94d6d67d42c7e6a699b4cc36d541d981ecbdb104e563515

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

require 'lib/databasion'

Given /a version spreadsheet in Google Docs/ do
  @config = YAML.load(File.open('config/google.yml'))
end

When /the cron system is ran and the version changes/ do
  Databasion::CronSystem.config = @config
  Databasion::CronSystem.run
end

Then /databasion should have been ran/ do
  Databasion::GoogleLoader.config = @config
  version = Databasion::GoogleLoader.run_version
  File.open(@config['cron']['version']['file']).readline.strip.should == version
  FileUtils.rm_rf @config['cron']['version']['file']
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
databasion-0.1.1 features/step_definitions/cron_system_steps.rb