Rails 3 initialize module, running cucumber

I have this in my environment file, I get “The error occurred while
evaluating nil.[] (NoMethodError)” on the S3Config.key= line when
running
cucumber. Why is it not loading up the module when running cucumber?

module S3Config
mattr_accessor :key
mattr_accessor :sec
end

class ActiveRecord::Base
include S3Config
extend DynamicMethods
end

S3Config.key = AppConfig[‘access_key_id’]
S3Config.sec = AppConfig[‘secret_access_key’]
ActionMailer::Base.default_url_options[:host]=AppConfig[‘base_url’]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs