Module: MaleChimp::TestHelper
- Defined in:
- lib/malechimp/test_helper.rb
Class Method Summary collapse
-
.config ⇒ Object
Load the MailChimp API key.
Class Method Details
.config ⇒ Object
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.('../../../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 |