diff --git a/spec/dummy/config/lokalise_rails.rb b/spec/dummy/config/lokalise_rails.rb index 01e8fad..9fe1f0f 100644 --- a/spec/dummy/config/lokalise_rails.rb +++ b/spec/dummy/config/lokalise_rails.rb @@ -1,6 +1,8 @@ +# frozen_string_literal: true + if defined?(LokaliseRails) && defined?(LokaliseRails::GlobalConfig) LokaliseRails::GlobalConfig.config do |c| - c.api_token = ENV['LOKALISE_API_TOKEN'] - c.project_id = ENV['LOKALISE_PROJECT_ID'] + c.api_token = ENV.fetch('LOKALISE_API_TOKEN', nil) + c.project_id = ENV.fetch('LOKALISE_PROJECT_ID', nil) + end end -end \ No newline at end of file