diff --git a/.standard.yml b/.standard.yml index 4bd8331c21..4952d35804 100644 --- a/.standard.yml +++ b/.standard.yml @@ -1,3 +1,4 @@ parallel: true +ruby_version: 3.0 ignore: - "spec/dummy/**/*" diff --git a/app/models/alchemy/node.rb b/app/models/alchemy/node.rb index d737d3cd74..fc21f9b6db 100644 --- a/app/models/alchemy/node.rb +++ b/app/models/alchemy/node.rb @@ -52,7 +52,7 @@ def available_menu_names # def read_definitions_file if ::File.exist?(definitions_file_path) - ::YAML.safe_load(File.read(definitions_file_path)) || [] + ::YAML.safe_load_file(definitions_file_path) || [] else raise LoadError, "Could not find menus.yml file! Please run `rails generate alchemy:install`" end diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 5ef2fb3717..c1e840a958 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative "./spec_helper" +require_relative "spec_helper" # Configure Rails Environment ENV["RAILS_ENV"] = "test"