push
travis-ci
16 of 16 new or added lines in 2 files covered. (100.0%)
352 of 359 relevant lines covered (98.05%)
736.84 hits per line
|
module Lotus |
12 all except jruby-head ✔ |
|
module Validations |
12 all except jruby-head ✔ |
3 |
# @since x.x.x
|
|
4 |
# @api private
|
|
|
class NestedAttributes |
12 all except jruby-head ✔ |
6 |
# @since x.x.x
|
|
7 |
# @api private
|
|
|
def self.fabricate(&blk) |
12 all except jruby-head ✔ |
|
dup.tap do |klass|
|
72 all except jruby-head ✔ |
|
klass.class_eval { include Lotus::Validations } |
138 all except jruby-head ✔ |
|
klass.class_eval(&blk) |
72 all except jruby-head ✔ |
12 |
end
|
|
13 |
end
|
|
14 |
|
|
15 |
# @since x.x.x
|
|
16 |
# @api private
|
|
|
def lotus_nested_attributes? |
12 all except jruby-head ✔ |
|
true
|
× |
|
end
|
× |
20 |
end
|
|
21 |
end
|
|
22 |
end
|