Files
eminuxCRM/test/models/organization_test.rb
T
eminuxandCursor c4e5f289cf
CI / scan_ruby (push) Failing after 11m20s
CI / scan_js (push) Successful in 10m35s
CI / lint (push) Has been cancelled
Commit iniziale di eminuxCRM: CRM Rails con pipeline, campagne email e Docker.
Include autenticazione, progetti isolati, mail marketing HTML con SMTP, test A/B e editor WYSIWYG.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 23:01:48 +02:00

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