diff options
author | Matthew Lemon <y@yulqen.org> | 2023-12-18 17:25:27 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-12-18 17:25:27 +0000 |
commit | 357960603604ba5dcd9e22c74bc6cbd26f3c7ae4 (patch) | |
tree | 665cc641417cfda112f77a46d7b4cefa2a0a3c96 | |
parent | 7483d6b8652854dbab53337b57467f69c7a2cad4 (diff) |
wip: How to add a hash of valid attributes
I need this for the controller rpsec tests....
-rw-r--r-- | spec/requests/events_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |