Configure guard for rspec