fixed specs - reportable - Fork of reportable required by WarVox, from hdm/reportable.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 0bf0c988885cd667f6bc6c71b9ab2a5bc73d8967
(DIR) parent e4f1ef62eaa8132c5e61a4b6cfa463f24e990691
(HTM) Author: Marco Otte-Witte <marco.otte-witte@simplabs.com>
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(-)
---
(DIR) 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, :profile_visits => 1)
- User.create!(:login => 'test 2', :created_at => Time.now - 2.days, :profile_visits => 2)
SpecialUser.create!(:login => 'test 3', :created_at => Time.now - 2.days, :profile_visits => 3)
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