Sha256: 49923697f0ad58d08f9e853b9d2260aea7980929e47e752942e08570ac3eef51

Contents?: true

Size: 579 Bytes

Versions: 3

Compression:

Stored size: 579 Bytes

Contents

Given /^i have a configuration file$/ do
  @config_hash = YAML.load "features/support/test.yml"
end

When /^i setup a configuration$/ do
  @logger = Logger.new(File.open("/dev/null", 'w'))
  @config = Kangaroo::Util::Configuration.new @config_hash, @logger
end

Then /^i should be able to login$/ do
  @logger.should_not_receive :warn
  @config.login
end

When /^i load models matching "([^"]*)"$/ do |arg1|
  Kangaroo::Util::Loader.new('res.*', @config.database).load!
end

Then /^"([^"]*)" should be defined$/ do |arg1|
  lambda { arg1.constantize }.should_not raise_error
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kangaroo-0.0.3 features/step_definitions/configuration_steps.rb
kangaroo-0.0.2 features/step_definitions/configuration_steps.rb
kangaroo-0.0.1.pre2 features/step_definitions/configuration_steps.rb