Skip to content

Commit

Permalink
fix Rakefile to work db:migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
sonots committed May 22, 2014
1 parent 62c5a26 commit 13e9c19
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
require "bundler/gem_tasks"
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'dotenv/tasks'
require 'fluentd_server/environment'

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ["-c", "-f progress"] # '--format specdoc'
t.pattern = 'spec/**/*_spec.rb'
end

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'dotenv/tasks'
require 'fluentd_server/config'

require 'sinatra/activerecord/rake'
task :test => :spec
task :default => :spec

task :console => :dotenv do
require "fluentd_server"
Expand All @@ -22,5 +21,4 @@ task :console => :dotenv do
end
task :c => :console

task :test => :spec
task :default => :spec
require 'sinatra/activerecord/rake'

0 comments on commit 13e9c19

Please sign in to comment.