glue 0.26.0 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- data/INSTALL +1 -1
- data/ProjectInfo +8 -1
- data/README +3 -3
- data/Rakefile +5 -1
- data/doc/RELEASES +7 -0
- data/lib/glue.rb +16 -2
- data/lib/glue/autoreload.rb +56 -0
- data/lib/glue/builder/xml.rb +1 -1
- data/lib/glue/configuration.rb +7 -3
- data/lib/glue/flexob.rb +5 -0
- data/lib/glue/mailer/outgoing.rb +1 -1
- data/lib/glue/property.rb +53 -32
- data/lib/glue/template.rb +9 -1
- data/setup.rb +1585 -0
- data/test/glue/tc_configuration.rb +2 -1
- metadata +108 -105
- data/install.rb +0 -37
- data/test/glue/tc_multi_validations.rb +0 -19
- data/test/glue/tc_validation2.rb +0 -208
- data/test/glue/tc_validation_loop.rb +0 -36
@@ -1,36 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
|
5
|
-
require 'og'
|
6
|
-
|
7
|
-
class ManagedClass
|
8
|
-
prop_accessor :thing
|
9
|
-
|
10
|
-
validate_unique :thing
|
11
|
-
end
|
12
|
-
|
13
|
-
Og.start
|
14
|
-
|
15
|
-
class TC_Loop < Test::Unit::TestCase
|
16
|
-
def setup
|
17
|
-
@thing_1 = ManagedClass.new
|
18
|
-
@thing_1.thing = 'thing'
|
19
|
-
@thing_1.save
|
20
|
-
end
|
21
|
-
|
22
|
-
def test_loop
|
23
|
-
thing_2 = ManagedClass.new
|
24
|
-
thing_2.thing = @thing_1.thing
|
25
|
-
# assert_raises(NoMethodError) {
|
26
|
-
# thing_2.valid?
|
27
|
-
# assert thing_2.errors
|
28
|
-
# }
|
29
|
-
end
|
30
|
-
|
31
|
-
def teardown
|
32
|
-
ManagedClass.all.each { |i| i.delete }
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
# * Bryan Soto <bryan.a.soto@gmail.com>
|