fixed rakefile and specs - reportable - Unnamed repository; edit this file 'des… | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 7289bb9f4193a56a8a5cd768b1a2f33b5ba4187e | |
parent 38bd74361bc517615c02f441e702166f1b0cb821 | |
Author: Marco Otte-Witte <[email protected]> | |
Date: Fri, 18 Sep 2009 14:48:55 +0200 | |
fixed rakefile and specs | |
Diffstat: | |
M Rakefile | 6 ++++++ | |
M spec/boot.rb | 1 - | |
M spec/db/database.yml | 4 ++-- | |
3 files changed, 8 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/Rakefile b/Rakefile | |
@@ -5,6 +5,12 @@ require 'spec/rake/spectask' | |
desc 'Default: run specs.' | |
task :default => :spec | |
+desc 'Run the specs on the CI server.' | |
+Spec::Rake::SpecTask.new(:ci) do |t| | |
+ t.spec_opts << '--format=specdoc' | |
+ t.spec_files = FileList['spec/**/*_spec.rb'] | |
+end | |
+ | |
desc 'Run the specs' | |
Spec::Rake::SpecTask.new(:spec) do |t| | |
t.spec_opts << '--color' | |
diff --git a/spec/boot.rb b/spec/boot.rb | |
@@ -1,6 +1,5 @@ | |
plugin_root = File.join(File.dirname(__FILE__), '..') | |
-require 'rubygems' | |
gem 'rails' | |
require 'activerecord' | |
require 'active_support' | |
diff --git a/spec/db/database.yml b/spec/db/database.yml | |
@@ -1,6 +1,6 @@ | |
sqlite3: | |
- adapter: sqlite3 | |
- dbfile: spec/db/reports_as_sparkline.sqlite3.db | |
+ adapter: sqlite3 | |
+ database: spec/db/reports_as_sparkline.sqlite3.db | |
mysql: | |
adapter: mysql | |
database: reports_as_sparkline_test |