lib/generators/test_unit/policy_generator.rb in pundit-2.1.0 vs lib/generators/test_unit/policy_generator.rb in pundit-2.1.1

- old
+ new

@@ -1,11 +1,13 @@ +# frozen_string_literal: true + module TestUnit module Generators class PolicyGenerator < ::Rails::Generators::NamedBase - source_root File.expand_path('templates', __dir__) + source_root File.expand_path("templates", __dir__) def create_policy_test - template 'policy_test.rb', File.join('test/policies', class_path, "#{file_name}_policy_test.rb") + template "policy_test.rb", File.join("test/policies", class_path, "#{file_name}_policy_test.rb") end end end end