Included Modules

Bones::Plugins::Test

Public Instance Methods

define_tasks() click to toggle source
    # File lib/bones/plugins/test.rb, line 37
37:   def define_tasks
38:     return unless have? :test
39:     config = ::Bones.config
40: 
41:     namespace :test do
42:       Rake::TestTask.new(:run) do |t|
43:         t.libs = config.libs
44:         t.test_files = if test(ff, config.test.file) then [config.test.file]
45:                        else config.test.files end
46:         t.ruby_opts += config.ruby_opts
47:         t.ruby_opts += config.test.opts
48:       end
49:     end  # namespace :test
50: 
51:     desc 'Alias to test:run'
52:     task :test => 'test:run'
53:   end
initialize_test() click to toggle source
    # File lib/bones/plugins/test.rb, line 8
 8:   def initialize_test
 9:     ::Bones.config {
10:       desc 'Configuration settings for the Ruby test framework.'
11:       test {
12:         files FileList['test/**/test_*.rb'], :desc =>           The list of test files to run. This defaults to all the ruby fines          in the 'test' directory that start with 'test_' as their filename.
13: 
14:         file 'test/all.rb', :desc =>           In fashion at one time was the concept of an encompassing test file          that would run all ruby tests for your project. You can specify that          file here. If the file does not exist this setting will be ignored.
15: 
16:         opts [], :desc =>           Extra ruby options to be used when running tests.
17:       }
18:     }
19:   end
post_load() click to toggle source
    # File lib/bones/plugins/test.rb, line 30
30:   def post_load
31:     config = ::Bones.config
32:     have?(:test) {
33:       Kernel.test(ee, config.test.file) or not config.test.files.to_a.empty?
34:     }
35:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.