inspec/test/unit
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
..
dependencies Add the start of tests for the Resolver class 2016-08-23 14:50:12 +01:00
dsl Use per-profile execution contexts for library loading 2016-09-04 20:55:20 +02:00
fetchers add unit test for local fetcher with windows path support 2016-08-24 16:23:27 +02:00
mock Load all dependent libraries, even if include_context isn't called 2016-09-04 20:55:20 +02:00
plugins Initial attempt at isolating resources between dependencies 2016-09-04 20:55:20 +02:00
profiles Use per-profile execution contexts for library loading 2016-09-04 20:55:20 +02:00
resources removed testing artifact 2016-09-02 22:04:06 -04:00
source_readers add flat source reader 2016-02-22 11:24:35 +01:00
utils Ignore comment lines in /etc/passwd 2016-08-16 10:54:52 +02:00
shell_detector_test.rb Add inspec env command to configure shell tab-completion 2016-08-10 02:07:53 +01:00