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