The cause of your test failure is here (and anywhere else you use `package`). What's happening is, `Chef::Provider` includes the Recipe DSL. Originally this was necessary to make LWRPs work, but we refactored that. Anyway, `package` is not a method name or local variable in this context, so you end up hitting the Recipe DSL, which interprets a call to `package` as trying to create a package resource with no name. I think what you're looking for here is probably `@new_resource.package_name` ?


@sersut let's make a note to remove the recipe DSL from the base provider in Chef 12 because it just causes lots of confusing problems like this.