Sha256: 6ab6fe93648b84d206eeb5547604047e93623bc847a580ef549c1ffbf8b16fea
Contents?: true
Size: 882 Bytes
Versions: 4
Compression:
Stored size: 882 Bytes
Contents
# encoding: utf-8 describe "GRANT" do let(:root) { QueryBuilder::CQL } let(:keyspace) { root.keyspace(:wildlife) } let(:table) { keyspace.table(:species) } it_behaves_like :query_builder do subject { root.permission.grant_to(:admin) } let(:cql) { "GRANT ALL PERMISSIONS ON ALL KEYSPACES TO admin;" } end it_behaves_like :query_builder do subject { root.permission(:alter).grant_to(:admin) } let(:cql) { "GRANT ALTER PERMISSION ON ALL KEYSPACES TO admin;" } end it_behaves_like :query_builder do subject { keyspace.permission(:create).grant_to(:admin) } let(:cql) { "GRANT CREATE PERMISSION ON KEYSPACE wildlife TO admin;" } end it_behaves_like :query_builder do subject { table.permission(:drop).grant_to(:admin) } let(:cql) { "GRANT DROP PERMISSION ON TABLE wildlife.species TO admin;" } end end # describe GRANT
Version data entries
4 entries across 4 versions & 1 rubygems