Sha256: ac856297445a5c171a7b663b5b5111ff230540de9162e7d349be3e4487729f22
Contents?: true
Size: 565 Bytes
Versions: 2
Compression:
Stored size: 565 Bytes
Contents
require 'test/unit' require 'rubygems' require 'og' class ManagedClass prop_accessor :thing validate_unique :thing end Og.start 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 def teardown ManagedClass.all.each { |i| i.delete } end end # * Bryan Soto <bryan.a.soto@gmail.com>
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
glue-0.26.0 | test/glue/tc_validation_loop.rb |
og-0.27.0 | test/og/tc_validation_loop.rb |