Skip to content

Loading…

Enable Unit Testing #11

Closed
wants to merge 1 commit into from

3 participants

@rivera-ernesto

By replacing [NSBundle mainBundle] by [NSBundle bundleForClass:[self class]] Unit Tests that use Lockbox will just work.
Also added GitHub's default .gitignore file for Objective-C projects.

@kexoth

Why this commit is still not merged?

@granoff
Owner

Because:

  • It cannot be automatically merged (trivial),
  • I have not gotten around to doing it,
  • I forgot this was outstanding.

Take your pick. :-)

I'll get to it soon. Very busy. Sorry.

@kexoth

Hey Mark,

That's alright, sounds reasonable, just write back here when it'll be changed.

Thanks,

Kex

@granoff
Owner

These changed will be in the next release. Thanks!

@granoff granoff closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 5, 2013
  1. @rivera-ernesto

    Enable Unit Testing

    rivera-ernesto committed
Showing with 19 additions and 4 deletions.
  1. +18 −3 .gitignore
  2. +1 −1 Lockbox.m
View
21 .gitignore
@@ -1,3 +1,18 @@
-xcuserdata/
-*xcuserdatad/
-*~
+# Xcode
+.DS_Store
+build/
+*.pbxuser
+!default.pbxuser
+*.mode1v3
+!default.mode1v3
+*.mode2v3
+!default.mode2v3
+*.perspectivev3
+!default.perspectivev3
+#*.xcworkspace
+!default.xcworkspace
+xcuserdata
+profile
+*.moved-aside
+DerivedData
+.idea/
View
2 Lockbox.m
@@ -25,7 +25,7 @@ @implementation Lockbox
+(void)initialize
{
- _bundleId = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleIdentifierKey];
+ _bundleId = [[[NSBundle bundleForClass:[self class]] infoDictionary] objectForKey:(NSString*)kCFBundleIdentifierKey];
}
+(NSMutableDictionary *)_service
Something went wrong with that request. Please try again.