Method: Kernel#use_testing_framework
- Defined in:
- lib/merb-core/core_ext/kernel.rb
#use_testing_framework(test_framework) ⇒ Object
Used in Merb.root/config/init.rb to tell Merb which testing framework to use. Currently Merb has plugins to support RSpec and Test::Unit.
Parameters
- test_framework<Symbol>
-
The test framework to use. Currently only supports :rspec and :test_unit.
Returns
nil
Example
use_test :rspec
# This will now use the RSpec generator for tests
$ merb-gen model ActivityEvent
:api: public
77 78 79 80 |
# File 'lib/merb-core/core_ext/kernel.rb', line 77 def use_testing_framework(test_framework) Merb.test_framework = test_framework nil end |