Fix /amibis spec clear being stored as a spec override
The generic "spec <name>" branch matched before the "spec clear" check, so clearing an override set overrideSpec to "Clear" and the UI then looked for a spec called Clear instead of falling back to auto-detection. Check the clear command first, collapse whitespace so "spec clear" parses, and refresh the frame immediately when the override changes. Spec names are also title-cased per word now, so "/amibis spec beast mastery" resolves to "Beast Mastery". Add test_slash.lua covering set/clear, case/whitespace normalization, and the clear-as-spec-name regression. 93 tests passing.
This commit is contained in:
1 parent
907d274b3a
commit
912ed8f255
4 files changed
+76
-5
No files matched your search
@@ -22,6 +22,7 @@ assert(loadfile("Amibis/Data/BISLists.lua"))(ADDON_NAME, ns)
|
||||
assert(loadfile("Amibis/Tests/test_data.lua"))(ADDON_NAME, ns)
|
||||
assert(loadfile("Amibis/Tests/test_stats.lua"))(ADDON_NAME, ns)
|
||||
assert(loadfile("Amibis/Tests/test_compare.lua"))(ADDON_NAME, ns)
|
||||
assert(loadfile("Amibis/Tests/test_slash.lua"))(ADDON_NAME, ns)
|
||||
|
||||
local success = TestHarness_report()
|
||||
os.exit(success and 0 or 1)
|
||||
Reference in new issue
Block a user