Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Dec 26, 2023
1 parent 0203886 commit de58c87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Application < Rails::Application
# Don't generate system test files.
config.generators.system_tests = nil

if Rails.version < Gem::Version.new('7.0')
if Rails.gem_version < Gem::Version.new('7.0')
config.load_defaults 6.1
else
config.load_defaults 7.0
Expand Down
8 changes: 3 additions & 5 deletions spec/dummy/config/lokalise_rails.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# frozen_string_literal: true

if defined?(LokaliseRails) && defined?(LokaliseRails::GlobalConfig)
LokaliseRails::GlobalConfig.config do |c|
c.api_token = ENV.fetch('LOKALISE_API_TOKEN', nil)
c.project_id = ENV.fetch('LOKALISE_PROJECT_ID', nil)
end
c.api_token = ENV['LOKALISE_API_TOKEN']
c.project_id = ENV['LOKALISE_PROJECT_ID']
end
end

0 comments on commit de58c87

Please sign in to comment.