Skip to content
Browse files

Update submodules before running the tests

  • Loading branch information...
1 parent 6f05750 commit c419c50019206eec1fc35185dbfbb045579eb513 @fd committed May 29, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 Rakefile
View
7 Rakefile
@@ -9,6 +9,11 @@ RSpec::Core::RakeTask.new do |t|
'-r', File.expand_path("../spec/spec_helper.rb", __FILE__)]
end
+task :checkout_conformance_tests do
+ sh "git submodule init"
+ sh "git submodule update"
+end
+
task :build_parser do
sh "bundle exec tt lib/json_select/selector_parser.tt -o lib/json_select/selector_parser.rb"
@@ -18,6 +23,6 @@ task :build_parser do
File.open(path, 'w+') { |f| f.write src }
end
-task :spec => :build_parser
+task :spec => [:checkout_conformance_tests, :build_parser]
task :build => :build_parser
task :default => :spec

0 comments on commit c419c50

Please sign in to comment.
Something went wrong with that request. Please try again.