Starting to get the tests in and working
This commit is contained in:
Binary file not shown.
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user