From a3e98876e2f88b69fef2a9da7d65b3704b6bf0d2 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 20 Dec 2023 17:49:28 +0000 Subject: Event scaffold tests now passing --- spec/requests/events_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/requests/events_spec.rb b/spec/requests/events_spec.rb index a3f9f96..c556197 100644 --- a/spec/requests/events_spec.rb +++ b/spec/requests/events_spec.rb @@ -23,7 +23,7 @@ RSpec.describe "/events", type: :request do } let(:invalid_attributes) { - skip("Add a hash of attributes invalid for your model") + {date: nil, name: nil, organisation_id: nil } } describe "GET /index" do @@ -90,14 +90,14 @@ RSpec.describe "/events", type: :request do describe "PATCH /update" do context "with valid parameters" do let(:new_attributes) { - skip("Add a hash of attributes valid for your model") + { name: "Suggy" } } it "updates the requested event" do event = Event.create! valid_attributes patch event_url(event), params: { event: new_attributes } event.reload - skip("Add assertions for updated state") + expect(response).to redirect_to(event_url(event)) end it "redirects to the event" do -- cgit v1.2.3