discourse/spec/services/trust_level_granter_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
300 B
Ruby
Raw Normal View History

# frozen_string_literal: true
describe TrustLevelGranter do
describe 'grant' do
it 'grants trust level' do
user = Fabricate(:user, email: "foo@bar.com", trust_level: 0)
TrustLevelGranter.grant(3, user)
user.reload
expect(user.trust_level).to eq(3)
end
end
end