20 lines
425 B
Ruby
20 lines
425 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
|