From 57995751ea8bd84e385ece61b0faccb46ad120f8 Mon Sep 17 00:00:00 2001 From: Steve Polito Date: Thu, 21 Mar 2024 05:24:57 -0400 Subject: [PATCH] Lint Generator: Fix generated spec The generated spec raised an error because `Rails.root` failed to load. Loading `rails_helper` fixed this issue. --- lib/generators/templates/lint/better_html_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/generators/templates/lint/better_html_spec.rb b/lib/generators/templates/lint/better_html_spec.rb index d567c66ea..c6614e571 100644 --- a/lib/generators/templates/lint/better_html_spec.rb +++ b/lib/generators/templates/lint/better_html_spec.rb @@ -1,4 +1,5 @@ require "spec_helper" +require "rails_helper" describe "ERB Implementation" do def self.erb_lint