=begin require 'test/unit' require 'rubygems' require 'og' class ManagedClass prop_accessor :thing validate_unique :thing end class TC_Loop < Test::Unit::TestCase def setup @thing_1 = ManagedClass.new @thing_1.thing = 'thing' @thing_1.save end def test_loop thing_2 = ManagedClass.new thing_2.thing = @thing_1.thing # assert_raises(NoMethodError) { # thing_2.valid? # assert thing_2.errors # } end end # * Bryan Soto =end