Commit b6d60b55 by Sammy Larbi

Test to ensure validates_uniqueness_of still works

parent a3179441
...@@ -692,6 +692,12 @@ class ParanoiaTest < test_framework ...@@ -692,6 +692,12 @@ class ParanoiaTest < test_framework
assert b.valid? assert b.valid?
end end
def test_validates_uniqueness_still_works_on_non_deleted_records
a = Employer.create!(name: "A")
b = Employer.new(name: "A")
refute b.valid?
end
def test_i_am_the_destroyer def test_i_am_the_destroyer
expected = %Q{ expected = %Q{
Sharon: "There should be a method called I_AM_THE_DESTROYER!" Sharon: "There should be a method called I_AM_THE_DESTROYER!"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment