I have used rspec visit to go to a path but it takes me to the index. I have checked callbacks but still cannot find a clue. Any help would be appreciated.
describe "addon purchased" do
it "should send email when addons are purchased" do
skip_alpine
sign_in(@attendee)
visit manage_tickets_v2_kwivrr_event_path(@event)
close_cookies_notification
skip_login_interrupts(@attendee)
expect(page).to have_content(@event.name)
visit not taking me to this specified path
here is my controller action
def manage_tickets
authorize @event
@addon_success_msg = params[:addon_msg] if params[:addon_msg].present?
end