spec/spec_helper.rb in carrierwave-aliyun-0.1.2 vs spec/spec_helper.rb in carrierwave-aliyun-0.1.3

- old
+ new

@@ -22,14 +22,18 @@ end ActiveRecord::Migration.verbose = false # 测试的时候需要修改这个地方 +ALIYUN_ACCESS_ID = "7ewl4zm3mhi45vko9zx022ul" +ALIYUN_ACCESS_KEY = 'Ajpi7IRKDKdXYHHFFoS89uQJQE8=' +ALIYUN_BUCKET = "carrierwave" + CarrierWave.configure do |config| config.storage = :aliyun - config.aliyun_access_id = "7ewl4zm3mhi45vko9zx022ul" - config.aliyun_access_key = 'Ajpi7IRKDKdXYHHFFoS89uQJQE8=' - config.aliyun_bucket = "carrierwave" + config.aliyun_access_id = ALIYUN_ACCESS_ID + config.aliyun_access_key = ALIYUN_ACCESS_KEY + config.aliyun_bucket = ALIYUN_BUCKET # config.aliyun_internal = false end def load_file(fname) File.open([Rails.root,fname].join("/")) \ No newline at end of file