Skip to content

Commit

Permalink
Create access_controller_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Sep 20, 2024
1 parent bc220e1 commit 6dccafc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions global_business/business/spec/lib/access_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'rails_helper'

RSpec.describe AccessController do
describe '#authorize' do
it 'authorizes the given user to perform the given action' do
user = FactoryBot.create(:user)
action = 'read'
expect(AccessController.authorize(user, action)).to be_truthy
end
end
end

0 comments on commit 6dccafc

Please sign in to comment.