Top Level Namespace
Defined Under Namespace
Modules: Bacon, Innate, Nagoro, Rack, Ramaze, Tenjin
Classes: BlankSlate, Controller, MainController
Instance Method Summary
collapse
Instance Method Details
#spec_precondition(name) ⇒ Object
14
15
16
17
18
19
20
21
22
|
# File 'lib/ramaze/spec/bacon.rb', line 14
def spec_precondition(name)
yield
rescue LoadError => ex
puts "Spec require: %p failed: %p" % [name, ex.message]
exit 0
rescue Exception => ex
puts "Spec precondition: %p failed: %p" % [name, ex.message]
exit 0
end
|
#spec_requires(*libs) ⇒ Object
Also known as:
spec_require
7
8
9
10
11
|
# File 'lib/ramaze/spec/bacon.rb', line 7
def spec_requires(*libs)
spec_precondition 'require' do
libs.each { |lib| require(lib) }
end
end
|