/usr/lib/ruby/vendor_ruby/introspection/assertions.rb is in ruby-introspection 0.0.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | module Introspection
module Assertions
def assert_snapshot_changed(object)
before = Snapshot.new(object)
yield
after = Snapshot.new(object)
assert before.changed?(after), "Snapshot has not changed."
end
def assert_snapshot_unchanged(object)
before = Snapshot.new(object)
yield
after = Snapshot.new(object)
assert !before.changed?(after), "Snapshot has changed: #{before.diff(after).inspect}"
end
end
end
|