Skip to content

Commit

Permalink
Fix spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Guo committed Apr 21, 2021
1 parent 812880f commit 3876356
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/wechat/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def wechat_config_js(config_options = {})
timestamp: "#{js_hash[:timestamp]}",
nonceStr: "#{js_hash[:noncestr]}",
signature: "#{js_hash[:signature]}",
jsApiList: ['#{config_options[:api].join("','")}'],
openTagList: ['#{config_options[:open_tags].join("','")}']
jsApiList: ['#{config_options[:api]&.join("','")}'],
openTagList: ['#{config_options[:open_tags]&.join("','")}']
});
WECHAT_CONFIG_JS
javascript_tag config_js, type: 'application/javascript'
Expand Down
2 changes: 1 addition & 1 deletion wechat.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'rexml'
s.add_development_dependency 'rubocop', '~> 1.0'
s.add_development_dependency 'rails', '>= 5.1'
s.add_development_dependency 'rspec-rails', '~> 4.0'
s.add_development_dependency 'rspec-rails', '~> 5.0'
s.add_development_dependency 'sqlite3', '~> 1.4'
end

0 comments on commit 3876356

Please sign in to comment.