travis-ci
18 of 18 new or added lines in 9 files covered. (100.0%)
57 of 6261 relevant lines covered (0.91%)
0.01 hits per line
1 |
module Tufts |
× |
2 |
##
|
× |
3 |
# An empty changeset
|
× |
4 |
#
|
× |
5 |
# @exmaple
|
× |
6 |
# cs = NullChangeSet.new(object, graph, changed_attributes)
|
× |
7 |
# cs.empty? # => true
|
× |
8 |
# cs.changes # => {}
|
× |
9 |
#
|
× |
10 |
# @see https://en.wikipedia.org/wiki/Null_Object_pattern
|
× |
11 |
# @see ActiveFedora::ChangeSet
|
× |
12 |
class NullChangeSet |
× |
13 |
def initialize(*); end |
× |
14 |
|
× |
15 |
def empty? |
× |
16 |
true
|
× |
17 |
end
|
× |
18 |
|
× |
19 |
def changes |
× |
20 |
{} |
× |
21 |
end
|
× |
22 |
|
× |
23 |
def changed_attributes |
× |
24 |
[] |
× |
25 |
end
|
× |
26 |
end
|
× |
27 |
end
|
× |