Sha256: adfa1b7f72737193439ec5c2ae6984eeefd339c709048817c94a6a30e62a613f

Contents?: true

Size: 609 Bytes

Versions: 13

Compression:

Stored size: 609 Bytes

Contents

require 'rbconfig'
require 'rake/testtask'
require 'rubygems'
require 'bundler'
Bundler.setup
require 'wd_sinatra/app_loader'

root = File.expand_path(File.dirname(__FILE__))

Rake::TestTask.new do |t|
  t.libs << "."
  t.libs << 'test'
  t.pattern = "test/**/*_test.rb"
end

task :default => :test

# boot the app
task :setup_app do
  ENV['DONT_CONNECT'] = 'true'
  WDSinatra::AppLoader.server(root)
end

task :environment do
  ENV['DONT_CONNECT'] = nil
  WDSinatra::AppLoader.server(root)
end

WDSinatra::AppLoader.set_loadpath(root)
Dir.glob("lib/tasks/**/*.rake").each do |task_file|
  load task_file
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wd_sinatra-0.3.2 templates/Rakefile
wd_sinatra-0.3.1 templates/Rakefile
wd_sinatra-0.3.0 templates/Rakefile
wd_sinatra-0.2.6 templates/Rakefile
wd_sinatra-0.2.5 templates/Rakefile
wd_sinatra-0.2.4 templates/Rakefile
wd_sinatra-0.2.3 templates/Rakefile
wd_sinatra-0.2.2 templates/Rakefile
wd_sinatra-0.2.1 templates/Rakefile
wd_sinatra-0.2.0 templates/Rakefile
wd_sinatra-0.1.0 templates/Rakefile
wd_sinatra-0.0.2 templates/Rakefile
wd_sinatra-0.0.1 templates/Rakefile