From 2e7ccdd2e90e5353e4083bbf7546b40451d9f45a Mon Sep 17 00:00:00 2001 From: wahibkapdi Date: Fri, 1 Nov 2024 17:31:36 -0500 Subject: [PATCH] Remove movie (#47) --- app/controllers/room_bookings_controller.rb | 2 +- spec/controllers/room_bookings_controller_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/room_bookings_controller.rb b/app/controllers/room_bookings_controller.rb index 8aa2fc9..660ba40 100644 --- a/app/controllers/room_bookings_controller.rb +++ b/app/controllers/room_bookings_controller.rb @@ -33,7 +33,7 @@ def create respond_to do |format| if room_booking.save - format.html { redirect_to schedule_room_bookings_path(@schedule), notice: 'Movie was successfully created.' } + format.html { redirect_to schedule_room_bookings_path(@schedule), notice: 'Room Booking was successfully created.' } format.json { render :index, status: :created } else flash[:alert] = 'Did not work' diff --git a/spec/controllers/room_bookings_controller_spec.rb b/spec/controllers/room_bookings_controller_spec.rb index ce9173f..6be4f87 100644 --- a/spec/controllers/room_bookings_controller_spec.rb +++ b/spec/controllers/room_bookings_controller_spec.rb @@ -69,7 +69,7 @@ } expect(RoomBooking.count).to eq(3) - expect(flash[:notice]).to eq('Movie was successfully created.') + expect(flash[:notice]).to eq('Room Booking was successfully created.') expect(response).to redirect_to(schedule_room_bookings_path(schedule)) end end