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

Version Path
gratan-0.3.2 spec/change/change_grants_4_spec.rb
gratan-0.3.1 spec/change/change_grants_4_spec.rb
gratan-0.3.1.beta4 spec/change/change_grants_4_spec.rb
gratan-0.3.1.beta3 spec/change/change_grants_4_spec.rb
gratan-0.3.1.beta2 spec/change/change_grants_4_spec.rb
gratan-0.3.1.beta spec/change/change_grants_4_spec.rb
gratan-0.3.0 spec/change/change_grants_4_spec.rb
gratan-0.3.0.beta spec/change/change_grants_4_spec.rb
gratan-0.2.9 spec/change/change_grants_4_spec.rb
gratan-0.2.9.beta3 spec/change/change_grants_4_spec.rb
gratan-0.2.9.beta2 spec/change/change_grants_4_spec.rb
gratan-0.2.9.beta spec/change/change_grants_4_spec.rb
gratan-0.2.8 spec/change/change_grants_4_spec.rb
gratan-0.2.8.beta3 spec/change/change_grants_4_spec.rb
gratan-0.2.8.beta2 spec/change/change_grants_4_spec.rb
gratan-0.2.8.beta spec/change/change_grants_4_spec.rb
gratan-0.2.7 spec/change/change_grants_4_spec.rb
gratan-0.2.6 spec/change/change_grants_4_spec.rb
gratan-0.2.5 spec/change/change_grants_4_spec.rb
gratan-0.2.4 spec/change/change_grants_4_spec.rb