Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the kicker script for the new API.

  • Loading branch information...
commit a9885ff614f0a39d575e35f02d553667e40165cf 1 parent f1e2eb9
@Manfred Manfred authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 .kick
View
7 .kick
@@ -3,7 +3,7 @@ ignore(/^(html|tmp|support)/)
recipe :ruby
-class Ruby
+class Kicker::Recipes::Ruby
def self.is_test_file?(path)
path if File.exist?(File.expand_path("../#{path}", __FILE__))
end
@@ -16,13 +16,12 @@ process do |files|
end
end
-recipe :ruby
process do |files|
- Ruby.run_tests(files.take_and_map do |file|
+ Kicker::Recipes::Ruby.run_tests(files.take_and_map do |file|
case file
when %r{^lib/(.+)\.rb$}
path = $1.gsub('/', '_')
- Ruby.is_test_file?("test/#{path}_test.rb")
+ Kicker::Recipes::Ruby.is_test_file?("test/#{path}_test.rb")
end
end)
end
Please sign in to comment.
Something went wrong with that request. Please try again.