Sha256: 57413318605f6d74bd73d67e4e45acefec955be8b0ba17574b1ca0f006451161
Contents?: true
Size: 592 Bytes
Versions: 34
Compression:
Stored size: 592 Bytes
Contents
describe 'Gratan::Client#apply' do context 'when revoke privs with grant option' do before do apply { <<-RUBY user 'scott', 'localhost' do on '*.*' do grant 'USAGE' end on 'test.*', with: 'GRANT OPTION' do grant 'ALL PRIVILEGES' end end RUBY } end subject { client } it do apply(subject) { <<-RUBY user 'scott', 'localhost' do on '*.*' do grant 'USAGE' end end RUBY } expect(show_grants).to match_array [ "GRANT USAGE ON *.* TO 'scott'@'localhost'", ] end end end
Version data entries
34 entries across 34 versions & 1 rubygems