-
-
Notifications
You must be signed in to change notification settings - Fork 103
Closed
Description
Hi, I have errors running the autogenerated tests for my controller. The url helpers methods are not found.
I created a new rails app this way and ran tests (some edits & other installed gems are omitted):
rails new sample-bun_tailwind_phlex_htmx -j bun -c tailwind -d sqlite3 --skip-hotwire --skip-jbuilder --skip-bootsnap`
bundle add phlex-rails
bin/rails generate phlex:install
bin/rails g phlex:controller Articles index show
# running tests:
bin/rails test
....
# Running:
E
Error:
ArticlesControllerTest#test_should_get_show:
NameError: undefined local variable or method `articles_show_url' for an instance of ArticlesControllerTest
test/controllers/articles_controller_test.rb:12:in `block in <class:ArticlesControllerTest>'
bin/rails test test/controllers/articles_controller_test.rb:11
E
Error:
ArticlesControllerTest#test_should_get_index:
NameError: undefined local variable or method `articles_index_url' for an instance of ArticlesControllerTest
test/controllers/articles_controller_test.rb:7:in `block in <class:ArticlesControllerTest>'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels