Include autenticazione, progetti isolati, mail marketing HTML con SMTP, test A/B e editor WYSIWYG. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
503 B
Ruby
17 lines
503 B
Ruby
require "test_helper"
|
|
|
|
class OrganizationTest < ActiveSupport::TestCase
|
|
test "requires name" do
|
|
org = Organization.new(status: "prospect", organization_type: "azienda")
|
|
assert_not org.valid?
|
|
assert_includes org.errors[:name], "non può essere vuoto"
|
|
end
|
|
|
|
test "has associations" do
|
|
org = organizations(:acme)
|
|
assert_includes org.contacts, contacts(:primary)
|
|
assert_includes org.opportunities, opportunities(:deal)
|
|
assert_includes org.tasks, tasks(:follow_up)
|
|
end
|
|
end
|