Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed rake test task

  • Loading branch information...
commit 9c0898a7bcbb0e7ca12961e553788e176268d053 1 parent 6a350ef
@markus1189 markus1189 authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 Rakefile
View
11 Rakefile
@@ -29,7 +29,7 @@ RDoc::Task.new do |rdoc|
rdoc.main = "README.rdoc"
rdoc.title = "Ruby/GraphViz, the Documentation"
rdoc.rdoc_files.add ['README.rdoc', 'CHANGELOG.rdoc', 'AUTHORS.rdoc', 'COPYING.rdoc',
- 'lib/graphviz.rb',
+ 'lib/graphviz.rb',
'lib/graphviz/node.rb',
'lib/graphviz/edge.rb',
'lib/graphviz/constants.rb',
@@ -45,11 +45,10 @@ end
Rake::TestTask.new(:test) do |t|
require 'graphviz/utils'
include GVUtils
- if find_executable("dot", nil).nil?
- t.test_files = FileList['test/test_*.rb'].exclude("test/test_examples.rb")
- else
- t.test_files = FileList['test/test_*.rb']
- end
+ test_files = FileList['test/test_*.rb'].exclude('test/test_dot_script.rb')
+ test_files.unshift('test/test_dot_script.rb')
+ test_files.exclude("test/test_examples.rb") unless find_executable("dot", nil)
+ t.test_files = test_files
end
Bundler::GemHelper.install_tasks
Please sign in to comment.
Something went wrong with that request. Please try again.