self.build_expectations

in tasks/e2e.rb [299:310]


    def self.build_expectations(template_path)
        expectations = DEFAULT_EXPECTATIONS.dup
        return expectations if template_path.nil?

        template_config_path = "#{template_path}.expectations"
        if File.exist?(template_config_path)
            extra_config = File.exist?(template_config_path) ? JSON.load(File.read(template_config_path)) : {}
            expectations.merge!(extra_config)
        end
        OpenStruct.new(expectations)
    end