Commit bc5db355 by lanrion

updated spec_helper.rb

parent 88403f68
...@@ -16,11 +16,13 @@ ...@@ -16,11 +16,13 @@
require "rspec" require "rspec"
require "weixin_authorize" require "weixin_authorize"
$client ||= WeixinAuthorize.configure do |config| # $client ||= WeixinAuthorize.configure do |config|
config.app_id = ENV["APPID"] # config.app_id = ENV["APPID"]
config.app_secret = ENV["APPSECRET"] # config.app_secret = ENV["APPSECRET"]
config.expired_at = Time.now.to_i # config.expired_at = Time.now.to_i
end # end
$client = WeixinAuthorize::Client.new(ENV["APPID"], ENV["APPSECRET"])
RSpec.configure do |config| RSpec.configure do |config|
# The settings below are suggested to provide a good initial experience # The settings below are suggested to provide a good initial experience
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment