Sha256: 2ddbad951099f8937e2df8a6d3ada3ce88dd6b19692ca5a681f6478bc245be11

Contents?: true

Size: 673 Bytes

Versions: 10

Compression:

Stored size: 673 Bytes

Contents

require 'lib/databasion'

Given /a google account/ do
  @config = YAML.load(File.open('config/google.yml'))
end

When /Googlize logs in/ do
  Databasion::Googlize.config = @config
  Databasion::Googlize.login
end

Then /we should have a GoogleSpreadsheet session/ do
  Databasion::Googlize.session.should be_kind_of(GoogleSpreadsheet::Session)
end

Given /a google yaml config/ do
  @config = YAML.load(File.open('config/google.yml'))
end

When /Googlize starts up/ do
  Databasion::Googlize.config = @config
  begin
    Databasion::Googlize.googlebate
    @error = false
  rescue
    @error = true
  end
end

Then /Googlize should not fail/ do
  @error.should == false
end

Version data entries

10 entries across 10 versions & 1 rubygems

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