Introduction
Introduction Statistics Contact Development Disclaimer Help
added missing cleanup to spec, fixed boot.rb - reportable - Fork of reportable …
Log
Files
Refs
README
---
commit b6aab6575a8a159e5887853f13b8d25d8d7f7d12
parent d1aa1be511b8c85872d238b84faa356ea3231baf
Author: Marco Otte-Witte <[email protected]>
Date: Mon, 2 Feb 2009 14:34:56 +0100
added missing cleanup to spec, fixed boot.rb
Diffstat:
M spec/boot.rb | 2 +-
M spec/classes/report_spec.rb | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/spec/boot.rb b/spec/boot.rb
@@ -19,5 +19,5 @@ FileUtils.mkdir_p File.join(File.dirname(__FILE__), 'log')
ActiveRecord::Base.logger = Logger.new(File.join(File.dirname(__FILE__), 'log'…
databases = YAML::load(IO.read(File.join(File.dirname(__FILE__), 'db', 'databa…
-ActiveRecord::Base.establish_connection(databases['sqlite'])
+ActiveRecord::Base.establish_connection(databases['sqlite3'])
load(File.join(File.dirname(__FILE__), 'db', 'schema.rb'))
diff --git a/spec/classes/report_spec.rb b/spec/classes/report_spec.rb
@@ -253,6 +253,10 @@ describe Kvlr::ReportsAsSparkline::Report do
Kvlr::ReportsAsSparkline::ReportCache.destroy_all
end
+ after(:all) do
+ User.destroy_all
+ end
+
end
describe '#read_data' do
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.