Starting to get the tests in and working

This commit is contained in:
2023-01-26 19:48:25 +00:00
parent dda03a1a9a
commit d73d234465
5 changed files with 28 additions and 18 deletions

Binary file not shown.

View File

@@ -1,7 +1,14 @@
require "test_helper"
class CafTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
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
end