Introduction
Introduction Statistics Contact Development Disclaimer Help
fixed specs - reportable - Fork of reportable required by WarVox, from hdm/repo…
Log
Files
Refs
README
---
commit 0bf0c988885cd667f6bc6c71b9ab2a5bc73d8967
parent e4f1ef62eaa8132c5e61a4b6cfa463f24e990691
Author: Marco Otte-Witte <[email protected]>
Date: Wed, 21 Apr 2010 17:15:21 +0200
fixed specs
Diffstat:
M spec/other/report_method_spec.rb | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/spec/other/report_method_spec.rb b/spec/other/report_method_spec.rb
@@ -22,8 +22,6 @@ describe Saulabs::Reportable do
describe 'for inherited models' do
before(:all) do
- User.create!(:login => 'test 1', :created_at => Time.now - 1.days, :pro…
- User.create!(:login => 'test 2', :created_at => Time.now - 2.days, :prof…
SpecialUser.create!(:login => 'test 3', :created_at => Time.now - 2.days…
end
@@ -46,7 +44,6 @@ describe Saulabs::Reportable do
end
after(:all) do
- User.destroy_all
SpecialUser.destroy_all
end
@@ -56,6 +53,10 @@ describe Saulabs::Reportable do
Saulabs::Reportable::ReportCache.destroy_all
end
+ after(:all) do
+ User.destroy_all
+ end
+
end
class User < ActiveRecord::Base
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.