Module: MaleChimp::TestHelper

Defined in:
lib/malechimp/test_helper.rb

Class Method Summary collapse

Class Method Details

.configObject

Load the MailChimp API key



7
8
9
10
11
12
13
14
# File 'lib/malechimp/test_helper.rb', line 7

def self.config
  @config ||= begin
    OpenStruct.new(YAML.load(File.read(File.expand_path('../../../spec/config.yml', __FILE__))))
  rescue Errno::ENOENT
    puts "Oops! You didn't run `rake setup` to configure your integration test settings."
    exit 1
  end
end