From 357960603604ba5dcd9e22c74bc6cbd26f3c7ae4 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 18 Dec 2023 17:25:27 +0000 Subject: wip: How to add a hash of valid attributes I need this for the controller rpsec tests.... --- spec/requests/events_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/requests/events_spec.rb b/spec/requests/events_spec.rb index 21154b6..70f9075 100644 --- a/spec/requests/events_spec.rb +++ b/spec/requests/events_spec.rb @@ -18,7 +18,9 @@ RSpec.describe "/events", type: :request do # Event. As you add validations to Event, be sure to # adjust the attributes here as well. let(:valid_attributes) { - skip("Add a hash of attributes valid for your model") + # skip("Add a hash of attributes valid for your model") + # TODO: How to do this?? + Hash.new(Date.new(2023, 1, 10), "Stunner") } let(:invalid_attributes) { -- cgit v1.2.3