Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.645 kB
$LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))
ENV["RACK_ENV"] ||= "development"
require "janky"
Janky.setup(ENV)
require "janky/tasks"
task "db:seed" do
if ENV["RACK_ENV"] != "development"
fail "refusing to load seed data into non-development database"
end
dump = File.expand_path("../lib/janky/database/seed.dump.gz", __FILE__)
Replicate::Loader.new do |loader|
loader.log_to $stderr, false, false
loader.read Zlib::GzipReader.open(dump)
end
end
require "rake/testtask"
Rake::TestTask.new(:test) do |t|
t.test_files = FileList["test/*_test.rb"]
t.ruby_opts << '-Itest -Ilib'
end
task :default => :test
Jump to Line
Something went wrong with that request. Please try again.