diff options
Diffstat (limited to 'actionwebservice/Rakefile')
-rw-r--r-- | actionwebservice/Rakefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionwebservice/Rakefile b/actionwebservice/Rakefile index e128d1198a..23e1dc2cd5 100644 --- a/actionwebservice/Rakefile +++ b/actionwebservice/Rakefile @@ -30,6 +30,14 @@ Rake::TestTask.new { |t| t.verbose = true } +SCHEMA_PATH = File.join(File.dirname(__FILE__), *%w(test fixtures db_definitions)) + +desc 'Build the MySQL test database' +task :build_database do + %x( mysqladmin create activewebservice_unittest ) + %x( mysql activewebservice_unittest < #{File.join(SCHEMA_PATH, 'mysql.sql')} ) +end + # Generate the RDoc documentation Rake::RDocTask.new { |rdoc| |