class RubyMemcheck::RSpec::RakeTask
Attributes
configuration[R]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/ruby_memcheck/rspec/rake_task.rb, line 12 def initialize(*args) @configuration = if !args.empty? && args[0].is_a?(Configuration) args.shift else RubyMemcheck.default_configuration end super end
Public Instance Methods
run_task(verbose)
click to toggle source
Calls superclass method
# File lib/ruby_memcheck/rspec/rake_task.rb, line 23 def run_task(verbose) error = nil begin # RSpec::Core::RakeTask#run_task calls Kernel.exit on failure super rescue SystemExit => e error = e end report_valgrind_errors raise error if error end
Private Instance Methods
spec_command()
click to toggle source
Calls superclass method
# File lib/ruby_memcheck/rspec/rake_task.rb, line 40 def spec_command # First part of command is Ruby args = super.split(" ")[1..] configuration.command(args) end