inspec/test/unit/profiles
Steven Danna 9bb65bd60c Use per-profile execution contexts for library loading
Previously, libraries were loaded by instance_eval'ing them against
the same execution context used for control files.  All resources were
registered against a single global registry when the `name` dsl method
was invoked.  To obtain seperation of resources, we would mutate the
instance variable holding the globale registry and then change it back
at the end.

Now, we instance_eval library files inside an anonymous class.  This
class has its own version of `Inspec.resource` that returns another
class with the resource DSL method and the profile-specific resource
registry.
2016-09-04 20:55:20 +02:00
..
library_eval_context_tests.rb Use per-profile execution contexts for library loading 2016-09-04 20:55:20 +02:00
metadata_test.rb restructure unit tests 2016-08-18 13:47:43 +02:00
profile_context_test.rb restructure unit tests 2016-08-18 13:47:43 +02:00
profile_test.rb restructure unit tests 2016-08-18 13:47:43 +02:00