spec/spec_helper.rb in carrierwave-aliyun-0.3.6 vs spec/spec_helper.rb in carrierwave-aliyun-0.4.0

- old
+ new

@@ -1,8 +1,7 @@ require 'rubygems' require 'rspec' -require 'rspec/autorun' require 'rails' require 'active_record' require "carrierwave" require 'carrierwave/orm/activerecord' require 'carrierwave/processing/mini_magick' @@ -23,22 +22,22 @@ ActiveRecord::Migration.verbose = false ActiveRecord::Base.raise_in_transactional_callbacks = true # 测试的时候需要修改这个地方 -ALIYUN_ACCESS_ID = "osOXJ5VeQVgDLMs3" -ALIYUN_ACCESS_KEY = 'm2LSEotGzDFrtHLeG1e6OATUTQ5ypR' -ALIYUN_BUCKET = "bison-dev" +ALIYUN_ACCESS_ID = "1OpWEtPTjIDv5u8q" +ALIYUN_ACCESS_KEY = 'cz12XgPfEVy8Xe9F9UJJHmVdHBJ9bi' +ALIYUN_BUCKET = "carrierwave-aliyun-test" +ALIYUN_AREA = "cn-beijing" CarrierWave.configure do |config| config.storage = :aliyun config.aliyun_access_id = ALIYUN_ACCESS_ID config.aliyun_access_key = ALIYUN_ACCESS_KEY config.aliyun_bucket = ALIYUN_BUCKET - config.aliyun_area = "cn-hangzhou" - config.aliyun_internal = true - config.aliyun_host = "http://bison-dev.cn-hangzhou.oss.aliyun-inc.com" + config.aliyun_area = ALIYUN_AREA + config.aliyun_internal = false end def load_file(fname) File.open([Rails.root,fname].join("/")) -end \ No newline at end of file +end