1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/test/models/history_value_test.rb

14 lines
377 B
Ruby
Raw Normal View History

# 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