We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdb4160 commit 24444ceCopy full SHA for 24444ce
spec/unit/puppet/provider/database_grant/mysql_spec.rb
@@ -6,18 +6,14 @@
6
end
7
provider_class = Puppet::Type.type(:database_grant).provider(:mysql)
8
describe provider_class do
9
- root_home = '/some/root/home'
10
- #root_home = ''
11
-
12
- let :facts do
13
- { :root_home => root_home }
14
- end
+ let(:root_home) { '/some/root/home' }
15
16
before :each do
17
@resource = Puppet::Type::Database_grant.new(
18
{ :privileges => 'all', :provider => 'mysql', :name => 'user@host'}
19
)
20
@provider = provider_class.new(@resource)
+ Facter.stubs(:value).with(:root_home).returns(root_home)
21
22
23
it 'should query privilegess from the database' do
0 commit comments