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>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user