Sha256: 0bb0c0cdf07e1e2bf8422a961ae17cec526e785ecdd97f7544cf168401b9280d

Contents?: true

Size: 503 Bytes

Versions: 4

Compression:

Stored size: 503 Bytes

Contents

=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 <bryan.a.soto@gmail.com>
=end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
og-0.28.0 test/og/tc_validation_loop.rb
og-0.29.0 test/og/tc_validation_loop.rb
og-0.30.0 test/og/tc_validation_loop.rb
og-0.31.0 test/og/tc_validation_loop.rb