require_relative 'spec_helper' subject -> { `ruby #{File.join File.dirname(__FILE__), '..', '..', '..', 'support', 'examples', '42', 'should', 'error', 'test.rb'}` } its :call do MUST match: /^0% compliant - 0 infos, 0 failures, 2 errors$/ end