All Questions
2 questions
1
vote
1
answer
409
views
How to test activeadmin AuthorizationAdapter?
I have a custom AutorizationAdapter that I would like to test using RSpec:
class AdminAuthorization < ActiveAdmin::AuthorizationAdapter
def authorized?(_action, _subject = nil)
user.admin?
...
0
votes
1
answer
50
views
Spec not logging in to edit profile
I am using RSpec and Capybara to write some tests for editing devise user profile:
require 'rails_helper'
feature "edit profile" do
scenario "visiting site to edit profile" do
...