Skip to content

Commit

Permalink
Instantiate a new provider
Browse files Browse the repository at this point in the history
  • Loading branch information
fatmcgav committed Jan 11, 2018
1 parent bf7eec7 commit a3673c3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/unit/puppet/provider/rabbitmq_policy/rabbitmqctl_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'spec_helper'

provider_class = Puppet::Type.type(:rabbitmq_policy).provider(:rabbitmqctl)
describe provider_class do
describe Puppet::Type.type(:rabbitmq_policy).provider(:rabbitmqctl) do
let(:resource) do
Puppet::Type.type(:rabbitmq_policy).new(
name: 'ha-all@/',
Expand All @@ -11,7 +10,7 @@
}
)
end
let(:provider) { provider_class.new(resource) }
let(:provider) { described_class.new(resource) }

after do
described_class.instance_variable_set(:@policies, nil)
Expand Down

0 comments on commit a3673c3

Please sign in to comment.