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