diff --git a/lib/spec/rake/spectask.rb b/lib/spec/rake/spectask.rb index 83883f62b..9049fd08e 100644 --- a/lib/spec/rake/spectask.rb +++ b/lib/spec/rake/spectask.rb @@ -118,7 +118,7 @@ def self.attr_accessor(*names) # Use verbose output. If this is set to true, the task will print # the executed spec command to stdout. Defaults to false. attr_accessor :verbose - + # Explicitly define the path to the ruby binary, or its proxy (e.g. multiruby) attr_accessor :ruby_cmd @@ -142,7 +142,7 @@ def initialize(name=:spec) end def define # :nodoc: - spec_script = File.expand_path(File.dirname(__FILE__) + '/../../../bin/spec') + spec_script = File.expand_path(File.join(File.dirname(__FILE__),"..","..","..","bin","spec")) lib_path = libs.join(File::PATH_SEPARATOR) actual_name = Hash === name ? name.keys.first : name