Sha256: e60f9718a7b268df47865993a1535f4b52870dabb102e9b306f951b004ebf26a

Contents?: true

Size: 679 Bytes

Versions: 10

Compression:

Stored size: 679 Bytes

Contents

require 'lib/databasion'

Given /there is an actual yaml config file for (.*)/ do |name|
  @config = 'config/google.yml'
end

When /the user runs databate for (.*)/ do |name|
  begin
    Databasion.databate(name, @config)
    @error = false
  rescue
    @error = true
  end
end

Then /Databasion should not fail for (.*)/ do |name|
  @error.should == false
end

Given /there is no config file for (.*)/ do |name|
  @config = nil
end

When /the user calls databate without config for (.*)/ do |name|
  begin
    Databasion.databate(name, @config)
    @error = false
  rescue
    @error = true
  end
end

Then /Databasion should fail for (.*)/ do |name|
  @error.should == true
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
databasion-0.1.0 features/step_definitions/databasion_steps.rb
databasion-0.0.9 features/step_definitions/databasion_steps.rb
databasion-0.0.8 features/step_definitions/databasion_steps.rb
databasion-0.0.7 features/step_definitions/databasion_steps.rb
databasion-0.0.6 features/step_definitions/databasion_steps.rb
databasion-0.0.5 features/step_definitions/databasion_steps.rb
databasion-0.0.4 features/step_definitions/databasion_steps.rb
databasion-0.0.3 features/step_definitions/databasion_steps.rb
databasion-0.0.2 features/step_definitions/databasion_steps.rb
databasion-0.0.1 features/step_definitions/databasion_steps.rb