Module: Blender::RSpec
Defined Under Namespace
Classes: SearchStub, StubRegistry
Instance Method Summary
collapse
#camelcase, #symbolize
Instance Method Details
#noop_scheduler_from_file(file) ⇒ Object
54
55
56
57
58
59
60
61
62
|
# 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
|
#stub_search(type, options = nil) ⇒ Object
50
51
52
|
# File 'lib/blender/rspec.rb', line 50
def stub_search(type, options = nil)
StubRegistry.add(type, options)
end
|