mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-15 00:24:09 +01:00
14 lines
377 B
Ruby
14 lines
377 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'test_helper'
|
|
|
|
class HistoryValueTest < ActiveSupport::TestCase
|
|
test 'an HistoryValue must be chained with a valid footprint' do
|
|
s = Setting.first
|
|
u = User.admins.first
|
|
hv = HistoryValue.new(setting: s, invoicing_profile: u.invoicing_profile, value: '1, 2, testing ...')
|
|
hv.save!
|
|
assert hv.check_footprint
|
|
end
|
|
end
|