# encoding: utf-8 # author: Steven Danna require 'helper' require 'rspec/core' require 'inspec/control_eval_context' describe Inspec::ControlEvalContext do module FakeDSL def foobar "wombat" end end Inspec::Log.level = :debug let(:control_content) { <"}) eval_context.instance_eval(control_content) profile_context.all_rules.each do |rule| # Turn each rule into an example group and run it, none of the example content should raise an # exception Inspec::Rule.prepare_checks(rule).each do |m, a, b| RSpec::Core::ExampleGroup.describe(*a, &b).run end end end end