From d839bed40fb7901ea88395d4ba06e58f4b3cc88a Mon Sep 17 00:00:00 2001 From: Azul Date: Fri, 8 Dec 2017 18:27:24 +0100 Subject: upgrade: factory_girl -> factory_bot --- features/step_definitions/messages_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'features/step_definitions/messages_steps.rb') diff --git a/features/step_definitions/messages_steps.rb b/features/step_definitions/messages_steps.rb index 30bc7c3..89d0196 100644 --- a/features/step_definitions/messages_steps.rb +++ b/features/step_definitions/messages_steps.rb @@ -1,5 +1,5 @@ Given /^there is a message for me$/ do - @message = FactoryGirl.create :message, user_ids_to_show: [@user.id] + @message = FactoryBot.create :message, user_ids_to_show: [@user.id] end Given /^there is a message for me with:$/ do |options| @@ -8,7 +8,7 @@ Given /^there is a message for me with:$/ do |options| if old_message = Message.find(attributes['id']) old_message.destroy end - @message = FactoryGirl.create :message, attributes + @message = FactoryBot.create :message, attributes end Given(/^that message is marked as read$/) do -- cgit v1.2.3