From f55a1d69f0c9e83cb6de5067c87a4e38df9628dd Mon Sep 17 00:00:00 2001 From: Steve Polito Date: Wed, 14 Feb 2024 16:46:26 -0500 Subject: [PATCH] Remove obsolete test --- .../suspenders/setup_generator_test.rb | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/test/generators/suspenders/setup_generator_test.rb b/test/generators/suspenders/setup_generator_test.rb index c6a2ce6dc..e3396ba2b 100644 --- a/test/generators/suspenders/setup_generator_test.rb +++ b/test/generators/suspenders/setup_generator_test.rb @@ -21,29 +21,6 @@ class SetupGeneratorTest < Rails::Generators::TestCase end end - test "creates dev:prime task" do - expected = <<~RUBY - if Rails.env.development? || Rails.env.test? - require "factory_bot" if Bundler.rubygems.find_name("factory_bot_rails").any? - - namespace :dev do - desc "Sample data for local development environment" - task prime: "db:setup" do - include FactoryBot::Syntax::Methods if Bundler.rubygems.find_name("factory_bot_rails").any? - - # create(:user, email: "user@example.com", password: "password") - end - end - end - RUBY - - run_generator - - assert_file app_root("lib/tasks/dev.rake") do |file| - assert_equal expected, file - end - end - test "has a custom description" do assert_no_match(/Description:/, generator_class.desc) end