aboutsummaryrefslogtreecommitdiffstats
path: root/spec/requests/events_spec.rb
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-12-20 17:15:29 +0000
committerMatthew Lemon <y@yulqen.org>2023-12-20 17:15:29 +0000
commitd5f5c3d7f2d92c180c56053c994a148afd63118a (patch)
treecab85e7cfc21e7a00e9719626e3db19789790f55 /spec/requests/events_spec.rb
parent17c866a3f93e24c5d022a3b9697a5c6293795f74 (diff)
Adds factory_bot to rspec testing suite
Diffstat (limited to '')
-rw-r--r--spec/requests/events_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/events_spec.rb b/spec/requests/events_spec.rb
index f168576..96183ae 100644
--- a/spec/requests/events_spec.rb
+++ b/spec/requests/events_spec.rb
@@ -19,7 +19,7 @@ RSpec.describe "/events", type: :request do
# adjust the attributes here as well.
let(:valid_attributes) {
# skip("Add a hash of attributes valid for your model")
- { date: Date.new(2023, 1, 10), name: "Stunner", organisation_id: "2" }
+ build :event.attributes # build uses the factory and attributes converts to a hash....
}
let(:invalid_attributes) {