lib/bio/plan/rendercheck.rb
def resolve_file(suite, filename)
        [
          File.join(run_config[:plan_context], suite, filename),
          File.expand_path(File.join(run_config[:plan_context], suite, '..', filename)),
          File.join(run_config[:plan_context], filename)
        ].find {|f| File.exist?(f)}
      end
# Try to find appropriate file by searching in suite directory, suites' parent or plan context
# @param [String] suite directory with render test case
# @param [String] filename to resolve
# @return [String] path to file in suite or plan context or nil
Try to find appropriate file by searching in suite directory, suites' parent or plan context
Try to find appropriate file by searching in suite directory suites ' parent or plan context
def resolve_file(suite, filename)
        [
          File.join(run_config[:plan_context], suite, filename),
          File.expand_path(File.join(run_config[:plan_context], suite, '..', filename)),
          File.join(run_config[:plan_context], filename)
        ].find {|f| File.exist?(f)}
      end
def resolve_file ( suite , filename ) [ File . join ( run_config [ :plan_context ] , suite , filename ) , File . expand_path ( File . join ( run_config [ :plan_context ] , suite , '..' , filename ) ) , File . join ( run_config [ :plan_context ] , filename ) ] . find { | f | File . exist? ( f ) } end
Try to find appropriate file by searching in suite directory, suites' parent or plan context
Try to find appropriate file by searching in suite directory suites ' parent or plan context
path to file in suite or plan context or nil
path to file in suite or plan context or nil
String
suite
filename
filename to resolve
filename to resolve