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.2.3 spec/change/change_grants_4_spec.rb
gratan-0.2.2 spec/change/change_grants_4_spec.rb
gratan-0.2.1 spec/change/change_grants_4_spec.rb
gratan-0.2.0 spec/change/change_grants_4_spec.rb
gratan-0.1.9 spec/change/change_grants_4_spec.rb
gratan-0.1.8 spec/change/change_grants_4_spec.rb
gratan-0.1.7 spec/change/change_grants_4_spec.rb
gratan-0.1.6 spec/change/change_grants_4_spec.rb
gratan-0.1.5 spec/change/change_grants_4_spec.rb
gratan-0.1.4 spec/change/change_grants_4_spec.rb
gratan-0.1.3 spec/change/change_grants_4_spec.rb
gratan-0.1.2 spec/change/change_grants_4_spec.rb
gratan-0.1.1 spec/change/change_grants_4_spec.rb
gratan-0.1.0 spec/change/change_grants_4_spec.rb