aboutsummaryrefslogtreecommitdiffstats
path: root/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'Framework')
-rw-r--r--Framework/MASShortcutBinderTests.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/Framework/MASShortcutBinderTests.m b/Framework/MASShortcutBinderTests.m
index 9f90a94..cb04532 100644
--- a/Framework/MASShortcutBinderTests.m
+++ b/Framework/MASShortcutBinderTests.m
@@ -95,4 +95,11 @@ static NSString *const SampleDefaultsKey = @"sampleShortcut";
@"Bind shortcut using a default value.");
}
+- (void) testBindingsWithDotSymbol
+{
+ static NSString *const SampleDefaultsKeyWithDotSymbol = @"sample.Shortcut";
+ XCTAssertThrows([_binder bindShortcutWithDefaultsKey:SampleDefaultsKeyWithDotSymbol toAction:^{}],
+ @"Attempting to use a defaults key with a dot symbol crashes with an exception.");
+}
+
@end