class MenucardController < ApplicationController
http_basic_authenticate_with name: 'admin', password: 'password'
def index
@menu_items = CsvFileTest.find_each(batch_size: 10)
end
end
I have a basic authentication in my rails app, how do i test it in feature automated testing.?
I tried this and many other methods too
page.driver.browser.basic_authorize('admin', 'password')
but authentication testing is not passing successful