Skip to content

Commit

Permalink
Remove obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepolitodesign committed Feb 14, 2024
1 parent b074e46 commit f55a1d6
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions test/generators/suspenders/setup_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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: "[email protected]", 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
Expand Down

0 comments on commit f55a1d6

Please sign in to comment.