# File lib/bones/plugins/spec.rb, line 35 35: def define_tasks 36: return unless have? :spec 37: config = ::Bones.config 38: 39: namespace :spec do 40: desc 'Run all specs with basic output' 41: Spec::Rake::SpecTask.new(:run) do |t| 42: t.ruby_opts = config.ruby_opts 43: t.spec_opts = config.spec.opts 44: t.spec_files = config.spec.files 45: t.libs += config.libs 46: end 47: 48: desc 'Run all specs with text output' 49: Spec::Rake::SpecTask.new(:specdoc) do |t| 50: t.ruby_opts = config.ruby_opts 51: t.spec_opts = config.spec.opts + ['--format', 'specdoc'] 52: t.spec_files = config.spec.files 53: t.libs += config.libs 54: end 55: end # namespace :spec 56: 57: desc 'Alias to spec:run' 58: task :spec => 'spec:run' 59: end
# File lib/bones/plugins/spec.rb, line 6 6: def initialize_spec 7: require 'spec/rake/spectask' 8: have?(:spec) { true } 9: 10: ::Bones.config { 11: desc 'Configuration settings for the RSpec test framework.' 12: spec { 13: files FileList['spec/**/*_spec.rb'], :desc => The list of spec files to run. This defaults to all the ruby fines in the 'spec' directory that end with '_spec.rb' as their filename. 14: 15: opts [], :desc => An array of command line options that will be passed to the spec command when running your tests. See the RSpec help documentation either online or from the command line by running 'spec --help'. 16: } 17: } 18: rescue LoadError 19: have?(:spec) { false } 20: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.