Sha256: 0507940a4edc8e8b012d8abcb13692cf5f41137e42bcaafdb3a25cc4e91d6660

Contents?: true

Size: 416 Bytes

Versions: 12

Compression:

Stored size: 416 Bytes

Contents

require 'yaml'

module Helpers
  def real_credentials_available?
    ::File.exists?(File.join(File.dirname(__FILE__), 'credentials.yml'))
  end
  
  def set_configuration_with_real_credentials
    cfg = ::YAML.load_file(File.join(File.dirname(__FILE__), 'credentials.yml'))
    
    ::Loopiator.configure do |config|
      cfg.each do |key, value|
        config.send("#{key}=", value)
      end
    end
  end
  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
loopiator-0.4.2 spec/support/helpers.rb
loopiator-0.4.1 spec/support/helpers.rb
loopiator-0.4.0 spec/support/helpers.rb
loopiator-0.3.8 spec/support/helpers.rb
loopiator-0.3.7 spec/support/helpers.rb
loopiator-0.3.6 spec/support/helpers.rb
loopiator-0.3.5 spec/support/helpers.rb
loopiator-0.3.4 spec/support/helpers.rb
loopiator-0.3.3 spec/support/helpers.rb
loopiator-0.3.2 spec/support/helpers.rb
loopiator-0.3.1 spec/support/helpers.rb
loopiator-0.3.0 spec/support/helpers.rb