module Blender::RSpec

Public Instance Methods

noop_scheduler_from_file(file) click to toggle source
# File lib/blender/rspec.rb, line 54
def noop_scheduler_from_file(file)
  des = File.read(file)
  $LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(file), 'lib')))
  Blender.blend(file) do |sch|
    sch.update_config(:noop, true)
    sch.lock_options(nil)
    sch.instance_eval(des, __FILE__, __LINE__)
  end
end