Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Added tests for attr_protected paranoid column; untested in #95
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckg committed Feb 25, 2013
1 parent d83c772 commit cfa4aec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_core.rb
Expand Up @@ -11,6 +11,11 @@ def test_paranoid?
assert ParanoidTime.paranoid?
end

def test_attr_protected_column
pt = ParanoidTime.new(:deleted_at => Time.now)
assert_nil pt.deleted_at
end

def test_scope_inclusion_with_time_column_type
assert ParanoidTime.respond_to?(:deleted_inside_time_window)
assert ParanoidTime.respond_to?(:deleted_before_time)
Expand Down

0 comments on commit cfa4aec

Please sign in to comment.