aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomáš Znamenáček2015-03-04 16:28:25 +0100
committerTomáš Znamenáček2015-03-04 16:28:25 +0100
commita9e6e5241c0afe3ef5670e5818920eb9a2ba2db7 (patch)
tree8a8a5e6f3000c3a9c4c271696d090429afbd7e1f
parent67f4a5477ba5c924ba5384cf9e86408f3db2f603 (diff)
downloadMASShortcut-a9e6e5241c0afe3ef5670e5818920eb9a2ba2db7.tar.bz2
Added a test case for a binder problem with dot symbols (#64).
-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