Skip to content

Commit

Permalink
Remove movie (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
wahibkapdi authored Nov 1, 2024
1 parent ccfd505 commit 2e7ccdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/room_bookings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/room_bookings_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e7ccdd

Please sign in to comment.