Currently Spree Deface will log an error if the original view changes. For example:
Deface: [ERROR] The original source for 'spree/foo' has changed, this override should be reviewed to ensure it's still valid.
Does anyone know of way to raise an error if the original changed? A way to unit test that the original is the same as the override?
For example if I have an override that looks like:
Deface::Override.new(
virtual_path 'spree/foo',
name 'foo',
insert_before: "[data-hook='button']"
original: 'abcde12345',
partial: 'spree/foo'
)
Is there a raise to an error if spree/foo
changed? A way to unit test that spree/foo
has not changed?
Thanks.