From 09064bb219279162ba3f84b6287247f9a654dc6c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 20 Dec 2023 17:34:26 +0000 Subject: Properly configures factory_bot and adds Faker --- spec/requests/events_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/requests/events_spec.rb') diff --git a/spec/requests/events_spec.rb b/spec/requests/events_spec.rb index 96183ae..a3f9f96 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") - build :event.attributes # build uses the factory and attributes converts to a hash.... + build(:event).attributes # build uses the factory and attributes converts to a hash.... } let(:invalid_attributes) { -- cgit v1.2.3