`initvars` is a method inherited from `Puppet::Provider` and is called when an instance of the provider is created. Instead of calling initvars manually here, the spec tests should probably just call `.initvars` in their `before :each` clause similar to https://github.com/puppetlabs/puppet/blob/master/spec/unit/provider/nameservice_spec.rb#L10