Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add template for Specta file

  • Loading branch information...
commit b3d29d42246abe84f6dce10f7a55d6d62abfdee3 1 parent 29bfca2
Saul Mora authored
BIN  File Templates/Speca Spec.xctemplate/TemplateIcon.icns
Binary file not shown
28  File Templates/Speca Spec.xctemplate/TemplateInfo.plist
... ...
@@ -0,0 +1,28 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3
+<plist version="1.0">
  4
+<dict>
  5
+	<key>AllowedTypes</key>
  6
+	<array>
  7
+		<string>public.objective-c-source</string>
  8
+		<string>public.objective-c-plus-plus-source</string>
  9
+	</array>
  10
+	<key>DefaultCompletionName</key>
  11
+	<string>TestCase</string>
  12
+	<key>Description</key>
  13
+	<string>A Kiwi specification set up to test a class. Remember to set the target to be your test target.</string>
  14
+	<key>Kind</key>
  15
+	<string>Xcode.IDEKit.TextSubstitutionFileTemplateKind</string>
  16
+	<key>MainTemplateFile</key>
  17
+	<string>___FILEBASENAME___.m</string>
  18
+	<key>CFBundleIdentifier</key>
  19
+	<string></string>
  20
+	<key>Platforms</key>
  21
+	<array>
  22
+		<string>com.apple.platform.iphoneos</string>
  23
+		<string>com.apple.platform.macosx</string>
  24
+	</array>
  25
+	<key>Summary</key>
  26
+	<string>A Kiwi specification.</string>
  27
+</dict>
  28
+</plist>
22  File Templates/Speca Spec.xctemplate/___FILEBASENAME___.m
... ...
@@ -0,0 +1,22 @@
  1
+// A Specta Test for ___FILEBASENAME___
  2
+
  3
+
  4
+SpecBegin(___FILEBASENAME___)
  5
+
  6
+describe(@"___FILEBASENAME___", ^{
  7
+
  8
+      context(@"On loading", ^{
  9
+        __block NSObject *object = nil;
  10
+            
  11
+        beforeEach(^{ 
  12
+            object = [[NSObject alloc] init];
  13
+        });
  14
+        
  15
+        it(@"should exist", ^{
  16
+            STAssertNotNil(object, @"should not be nil");
  17
+        });
  18
+
  19
+    });
  20
+});
  21
+
  22
+SpecEnd

0 notes on commit b3d29d4

Please sign in to comment.
Something went wrong with that request. Please try again.