Sha256: 71ffbc502881e3c028c0816666e7797cfbd4c75d323ed8d28e1ad543f229283b
Contents?: true
Size: 647 Bytes
Versions: 4
Compression:
Stored size: 647 Bytes
Contents
require "rake/testtask" REDIS_DIR = File.expand_path(File.join("..", "test"), __FILE__) REDIS_CNF = File.join(REDIS_DIR, "test.conf") REDIS_PID = File.join(REDIS_DIR, "db", "redis.pid") task :default => :run desc "Run tests and manage server start/stop" task :run => [:start, :test, :stop] desc "Start the Redis server" task :start do unless File.exists?(REDIS_PID) system "redis-server #{REDIS_CNF}" end end desc "Stop the Redis server" task :stop do if File.exists?(REDIS_PID) system "kill #{File.read(REDIS_PID)}" system "rm #{REDIS_PID}" end end Rake::TestTask.new(:test) do |t| t.pattern = 'test/**/*_test.rb' end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ohm-0.1.0.rc2 | Rakefile |
ohm-0.1.0.rc1 | Rakefile |
ohm-0.0.35 | Rakefile |
ohm-0.0.34 | Rakefile |