Skip to content

Commit

Permalink
Merge pull request #6 from renuo/feature/fix-test-env
Browse files Browse the repository at this point in the history
  • Loading branch information
aneshodza committed Jun 6, 2023
2 parents 20b375c + 1456579 commit b34e3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.rb
Expand Up @@ -8,7 +8,7 @@
ENV = ActiveSupport::HashWithIndifferentAccess.new(yaml_data)
end

if ENV['GITHUB_ACCESS_TOKEN'].blank?
if ENV['GITHUB_ACCESS_TOKEN'].blank? && !Rails.env.test?
raise 'GITHUB_ACCESS_TOKEN is not set'
elsif ENV['GITHUB_ACCESS_TOKEN'] == 'your_token'
Rails.logger.warn 'GITHUB_ACCESS_TOKEN is default value'
Expand Down

0 comments on commit b34e3d3

Please sign in to comment.