billwright / rattlesnake_ramble

Website project for the Rattlesnake Ramble Trail Race
2 stars 0 forks source link

Adding ability to sell a piece of race merchandise when entering #189

Closed billwright closed 5 months ago

billwright commented 5 months ago

@moveson can you take a look at this?

My tests are failing, but I don't know why. It doesn't seem related to my change, but, of course, it must be... Except that the tests pass on GitHub! What's happening here?

Here's the error (this is running 'rake test') (see below).

Ah, I think the error must be related to adding fields to the race_edition model and that must have broken the show view for it. But the error about missing :id is confusing... I didn't change anything with id...

Also, the site starts and operates without errors in my manual checks...so far.

(base) rattlesnake_ramble> test Running via Spring preloader in process 40496 Running via Spring preloader in process 40499 Run options: --seed 24833

Running:

E

Error: WelcomeControllerTest#test_should_get_index: ActionView::Template::Error: No route matches {:action=>"show", :controller=>"race_editions", :id=>nil}, missing required keys: [:id] app/views/layouts/_navigation.html.erb:14 app/views/layouts/application.html.erb:13 test/controllers/welcome_controller_test.rb:5:in `block in '

rails test test/controllers/welcome_controller_test.rb:4