rails-caf/test/models/caf_test.rb
Jez Caudle 1474999cd4 Fixing paths
Adding more Caf to the YAML
Test for the YAML to make sure it is valid YAML
2024-10-10 10:56:43 +01:00

20 lines
423 B
Ruby

require "test_helper"
require 'yaml'
class CafTest < ActiveSupport::TestCase
test "name_unique_per_company" do
company = Company.where(name: "HiddenAgendaLtd").first
c = company.cafs.new(name: "HiddenAgendaCAF")
assert !c.save
end
test "name cant be blank" do
c = Caf.new
assert !c.save
end
test "yaml file is valid" do
ymal = YAML.load_file('config/caf_text.yml')
end
end