diff options
author | Matthew Lemon <y@yulqen.org> | 2023-12-20 17:49:28 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-12-20 17:49:28 +0000 |
commit | a3e98876e2f88b69fef2a9da7d65b3704b6bf0d2 (patch) | |
tree | 2c87e05d028d929869cdc21a6a4186a1b836ea91 | |
parent | 09064bb219279162ba3f84b6287247f9a654dc6c (diff) |
Event scaffold tests now passing
-rw-r--r-- | spec/requests/events_spec.rb | 6 |
1 files 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 |