aboutsummaryrefslogtreecommitdiff
path: root/internal/object/object_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/object/object_test.go')
-rw-r--r--internal/object/object_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/object/object_test.go b/internal/object/object_test.go
new file mode 100644
index 0000000..251dc61
--- /dev/null
+++ b/internal/object/object_test.go
@@ -0,0 +1,13 @@
+package object
+
+import "testing"
+
+// TestBehaviorTypeSafespotIsNotActionType: BehaviorType must not return
+// "safespot" (it is not a behavior.ActionType), or the generic verb gate
+// treats a safespot-only object as an unknown action type.
+func TestBehaviorTypeSafespotIsNotActionType(t *testing.T) {
+ def := &ObjectDef{Safespot: &SafespotConfig{}}
+ if got := def.BehaviorType(); got != "" {
+ t.Fatalf("BehaviorType(safespot-only) = %q, want empty", got)
+ }
+}