Sha256: 8656d48ef7c93d099bdc94f63af5ed9aa8de9081a65e018369757a677014f093
Contents?: true
Size: 835 Bytes
Versions: 2
Compression:
Stored size: 835 Bytes
Contents
describe 'Gratan::Client#export' do context 'when chunked by user' do subject { client(chunk_by_user: true) } before do apply(subject) do <<-RUBY user "scott", "%" do on "*.*" do grant "USAGE" end on "test.*" do grant "SELECT" end on "test3.*" do grant "UPDATE" end end user "scott", "localhost" do on "*.*" do grant "USAGE" end on "test2.*" do grant "INSERT" end on "test3.*" do grant "DELETE" end end RUBY end end it do expect(subject.export.strip).to eq <<-RUBY.strip user "scott", ["%", "localhost"] do on "*.*" do grant "USAGE" end on "test.*" do grant "SELECT" end on "test3.*" do grant "UPDATE" grant "DELETE" end on "test2.*" do grant "INSERT" end end RUBY end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gratan-0.2.6 | spec/export/export_chunk_spec.rb |
gratan-0.2.5 | spec/export/export_chunk_spec.rb |