Skip to content

Commit

Permalink
Improve if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
wildmaples committed Jul 28, 2023
1 parent 7e698d2 commit 06a9605
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spec/data_migrate/schema_migration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@
let(:config_options) do
if Gem::Dependency.new("railties", "~> 6.1").match?("railties", Gem.loaded_specs["railties"].version)
{ env_name: Rails.env, spec_name: specification_name }
elsif Gem::Dependency.new("railties", "~> 7.0").match?("railties", Gem.loaded_specs["railties"].version)
{ env_name: Rails.env, name: specification_name }
else
{ env_name: Rails.env, name: specification_name }
end
Expand Down

0 comments on commit 06a9605

Please sign in to comment.