diff --git a/.gitignore b/.gitignore index 4bfbb62..090a1f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,2 @@ .idea .DS_Store -xcuserdata - -#CocoaPods -Pods -*.xcworkspace \ No newline at end of file diff --git a/.slather.yml b/.slather.yml deleted file mode 100644 index 9a9a9b6..0000000 --- a/.slather.yml +++ /dev/null @@ -1,3 +0,0 @@ -coverage_service: coveralls -xcodeproj: RKNotificationHub.xcodeproj -source_directory: RKNotificationHub \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7d20796..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: objective-c -before_install: - - export LANG=en_US.UTF-8 - - gem install cocoapods xcpretty slather --no-ri --no-rdoc --no-ri --no-rdoc -script: rake test -after_success: slather \ No newline at end of file diff --git a/Podfile b/Podfile deleted file mode 100644 index 35dcca4..0000000 --- a/Podfile +++ /dev/null @@ -1,14 +0,0 @@ -# Uncomment this line to define a global platform for your project -# platform :ios, '6.0' - -target 'RKNotificationHub' do - -end - -target 'RKNotificationHubTests' do - pod 'FBSnapshotTestCase' - pod 'Expecta+Snapshots' - pod 'Specta' - pod 'Expecta' -end - diff --git a/Podfile.lock b/Podfile.lock deleted file mode 100644 index 65dcd4a..0000000 --- a/Podfile.lock +++ /dev/null @@ -1,21 +0,0 @@ -PODS: - - Expecta (0.4.1) - - Expecta+Snapshots (1.3.2): - - Expecta (~> 0.3) - - FBSnapshotTestCase (= 1.6) - - FBSnapshotTestCase (1.6) - - Specta (0.5.0) - -DEPENDENCIES: - - Expecta - - Expecta+Snapshots - - FBSnapshotTestCase - - Specta - -SPEC CHECKSUMS: - Expecta: a2f175f4f5f99d062d480787945ea11d8884077e - Expecta+Snapshots: 40c5ec43b43da3bae957f14fed5dc9177d08ec8b - FBSnapshotTestCase: 9d5fe43b29ae3a0ed8fc829477971b281038f748 - Specta: eb90708ed77569bbda089f8ead10bb99b8e9489e - -COCOAPODS: 0.36.4 diff --git a/README.md b/README.md index 675b0e4..80f25e7 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,6 @@ RKNotificationHub ================= -[![Build Status](https://travis-ci.org/cevitcejbo/RKNotificationHub.svg?branch=master)](https://travis-ci.org/cevitcejbo/RKNotificationHub) -[![Coverage Status](https://coveralls.io/repos/cevitcejbo/RKNotificationHub/badge.svg?branch=master)](https://coveralls.io/r/cevitcejbo/RKNotificationHub?branch=master) - A way to quickly add a notification icon to a UIView ![demo](http://i.imgur.com/SpE2BQv.gif) diff --git a/RKNotificationHub.xcodeproj/project.pbxproj b/RKNotificationHub.xcodeproj/project.pbxproj index 4b850a7..5d88cb2 100644 --- a/RKNotificationHub.xcodeproj/project.pbxproj +++ b/RKNotificationHub.xcodeproj/project.pbxproj @@ -16,7 +16,6 @@ 998DB1CF19DAEA72006655C8 /* RKNotificationHubTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 998DB1CE19DAEA72006655C8 /* RKNotificationHubTests.m */; }; 998DB1DA19DAEE12006655C8 /* RKNotificationHub.m in Sources */ = {isa = PBXBuildFile; fileRef = 998DB1D919DAEE12006655C8 /* RKNotificationHub.m */; }; 998DB1E219DAFE9D006655C8 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 998DB1E119DAFE9D006655C8 /* QuartzCore.framework */; }; - E04C89EA0B318CAFB92F0F85 /* libPods-RKNotificationHubTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 18AA74D719334ED82E2A0EBA /* libPods-RKNotificationHubTests.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -30,8 +29,6 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 18AA74D719334ED82E2A0EBA /* libPods-RKNotificationHubTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RKNotificationHubTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 4A49F5E8EBA593E310AF6B3D /* Pods-RKNotificationHubTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RKNotificationHubTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RKNotificationHubTests/Pods-RKNotificationHubTests.debug.xcconfig"; sourceTree = ""; }; 998DB1AF19DAEA72006655C8 /* RKNotificationHub.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RKNotificationHub.app; sourceTree = BUILT_PRODUCTS_DIR; }; 998DB1B319DAEA72006655C8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 998DB1B419DAEA72006655C8 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; @@ -48,7 +45,6 @@ 998DB1D819DAEE12006655C8 /* RKNotificationHub.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RKNotificationHub.h; sourceTree = ""; }; 998DB1D919DAEE12006655C8 /* RKNotificationHub.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RKNotificationHub.m; sourceTree = ""; }; 998DB1E119DAFE9D006655C8 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; - C6092AB33B3DCE32F29C8455 /* Pods-RKNotificationHubTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RKNotificationHubTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-RKNotificationHubTests/Pods-RKNotificationHubTests.release.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -64,21 +60,12 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - E04C89EA0B318CAFB92F0F85 /* libPods-RKNotificationHubTests.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 5AA2EAE8AA810749C363F2F2 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 18AA74D719334ED82E2A0EBA /* libPods-RKNotificationHubTests.a */, - ); - name = Frameworks; - sourceTree = ""; - }; 998DB1A619DAEA72006655C8 = { isa = PBXGroup; children = ( @@ -86,8 +73,6 @@ 998DB1B119DAEA72006655C8 /* RKNotificationHub */, 998DB1CB19DAEA72006655C8 /* RKNotificationHubTests */, 998DB1B019DAEA72006655C8 /* Products */, - D931D981BA641125B2394D41 /* Pods */, - 5AA2EAE8AA810749C363F2F2 /* Frameworks */, ); sourceTree = ""; }; @@ -143,15 +128,6 @@ name = "Supporting Files"; sourceTree = ""; }; - D931D981BA641125B2394D41 /* Pods */ = { - isa = PBXGroup; - children = ( - 4A49F5E8EBA593E310AF6B3D /* Pods-RKNotificationHubTests.debug.xcconfig */, - C6092AB33B3DCE32F29C8455 /* Pods-RKNotificationHubTests.release.xcconfig */, - ); - name = Pods; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -176,11 +152,9 @@ isa = PBXNativeTarget; buildConfigurationList = 998DB1D519DAEA72006655C8 /* Build configuration list for PBXNativeTarget "RKNotificationHubTests" */; buildPhases = ( - F6084CBD4C0275C6008835C9 /* Check Pods Manifest.lock */, 998DB1C419DAEA72006655C8 /* Sources */, 998DB1C519DAEA72006655C8 /* Frameworks */, 998DB1C619DAEA72006655C8 /* Resources */, - 7B6B3EE7918159C19F730944 /* Copy Pods Resources */, ); buildRules = ( ); @@ -249,39 +223,6 @@ }; /* End PBXResourcesBuildPhase section */ -/* Begin PBXShellScriptBuildPhase section */ - 7B6B3EE7918159C19F730944 /* Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RKNotificationHubTests/Pods-RKNotificationHubTests-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; - F6084CBD4C0275C6008835C9 /* Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Check Pods Manifest.lock"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - /* Begin PBXSourcesBuildPhase section */ 998DB1AB19DAEA72006655C8 /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -354,8 +295,6 @@ ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; - GCC_GENERATE_TEST_COVERAGE_FILES = YES; - GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", @@ -397,8 +336,6 @@ ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_GENERATE_TEST_COVERAGE_FILES = YES; - GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; @@ -436,7 +373,6 @@ }; 998DB1D619DAEA72006655C8 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 4A49F5E8EBA593E310AF6B3D /* Pods-RKNotificationHubTests.debug.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; FRAMEWORK_SEARCH_PATHS = ( @@ -456,7 +392,6 @@ }; 998DB1D719DAEA72006655C8 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = C6092AB33B3DCE32F29C8455 /* Pods-RKNotificationHubTests.release.xcconfig */; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; FRAMEWORK_SEARCH_PATHS = ( diff --git a/RKNotificationHub.xcodeproj/xcshareddata/xcschemes/RKNotificationHub.xcscheme b/RKNotificationHub.xcodeproj/xcshareddata/xcschemes/RKNotificationHub.xcscheme deleted file mode 100644 index c5024d3..0000000 --- a/RKNotificationHub.xcodeproj/xcshareddata/xcschemes/RKNotificationHub.xcscheme +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/RKNotificationHubTests/RKNotificationHubTests.m b/RKNotificationHubTests/RKNotificationHubTests.m index 79d1a91..dc55ecf 100644 --- a/RKNotificationHubTests/RKNotificationHubTests.m +++ b/RKNotificationHubTests/RKNotificationHubTests.m @@ -1,277 +1,40 @@ -#import -#import -#import -#import +// +// RKNotificationHubTests.m +// RKNotificationHubTests +// +// Created by Richard Kim on 9/30/14. +// Copyright (c) 2014 Richard Kim. All rights reserved. +// -#import "RKNotificationHub.h" +#import +#import -@implementation UIView(SpecFlywheel) - -+ (void)animateWithDuration:(NSTimeInterval)duration - animations:(void (^)(void))animations - completion:(void (^)(BOOL finished))completion { - if (animations) - animations(); - if (completion) - completion(YES); -} +@interface RKNotificationHubTests : XCTestCase @end -SpecBegin(RKNotificationHub) - -// setup - -describe(@"initWithView:", ^{ - __block UIView *view; - __block RKNotificationHub *subject; - - beforeAll(^{ - view = [[UIView alloc] initWithFrame:CGRectZero]; - subject = [[RKNotificationHub alloc] initWithView:view]; - }); - - it(@"should initialize hub with given view as hubView", ^{ - expect(subject.hubView).to.equal(view); - }); - - it(@"should initialize hub with count 0", ^{ - expect([subject count]).to.equal(0); - }); -}); - -describe(@"setView:andCount:", ^{ - __block UIView *view; - __block RKNotificationHub *subject; - - beforeAll(^{ - view = [[UIView alloc] initWithFrame:CGRectZero]; - subject = [[RKNotificationHub alloc] initWithView:nil]; - [subject setView:view andCount:2]; - }); - - it(@"should set hub view", ^{ - expect(subject.hubView).to.equal(view); - }); - - it(@"should set count", ^{ - expect([subject count]).to.equal(2); - }); -}); +@implementation RKNotificationHubTests -describe(@"changing the count", ^{ - __block UIView *view; - __block RKNotificationHub *subject; - - before(^{ - view = [[UIView alloc] initWithFrame:CGRectZero]; - subject = [[RKNotificationHub alloc] initWithView:nil]; - [subject setView:view andCount:20]; - }); - - describe(@"increment", ^{ - it(@"should increase count", ^{ - [subject increment]; - expect([subject count]).to.equal(21); - }); - }); - - describe(@"incrementBy:", ^{ - it(@"should increase count by given value", ^{ - [subject incrementBy:10]; - expect([subject count]).to.equal(30); - }); - }); - - describe(@"decrement", ^{ - it(@"should decrease count", ^{ - [subject decrement]; - expect([subject count]).to.equal(19); - }); - - it(@"should not decrease count if count is 0", ^{ - [subject setCount:0]; - [subject decrement]; - expect([subject count]).to.equal(0); - }); - }); - - describe(@"decrementBy:", ^{ - it(@"should decrease count by given value", ^{ - [subject decrementBy:15]; - expect([subject count]).to.equal(5); - }); - - it(@"should make count negative if given value is larger than the count", ^{ - [subject decrementBy:40]; - expect([subject count]).to.equal(-20); - }); - }); - - describe(@"setCount:", ^{ - it(@"should update count with given value", ^{ - [subject setCount:35]; - expect([subject count]).to.equal(35); - }); - }); -}); +- (void)setUp { + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} -describe(@"animations", ^{ - __block UIView *view; - __block RKNotificationHub *subject; - - before(^{ - view = [[UIView alloc] initWithFrame:CGRectZero]; - subject = [[RKNotificationHub alloc] initWithView:nil]; - [subject setView:view andCount:20]; - }); - - describe(@"pop", ^{ - it(@"should not change count", ^{ - [subject pop]; - expect([subject count]).to.equal(20); - }); - }); - - describe(@"blink", ^{ - it(@"should not change count", ^{ - [subject blink]; - expect([subject count]).to.equal(20); - }); - }); - - describe(@"bump", ^{ - it(@"should not change count", ^{ - [subject bump]; - expect([subject count]).to.equal(20); - }); - }); -}); +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} -describe(@"visuals", ^{ - __block UIView *backgroundView; - __block UIView *targetView; - __block RKNotificationHub *subject; - - before(^{ - backgroundView = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 200.0, 200.0)]; - - targetView = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 100.0, 40.0)]; - targetView.center = backgroundView.center; - [targetView setBackgroundColor:[UIColor lightGrayColor]]; - - [backgroundView addSubview:targetView]; - - subject = [[RKNotificationHub alloc] initWithView:targetView]; - [subject setCount:5]; - }); +- (void)testExample { + // This is an example of a functional test case. + XCTAssert(YES, @"Pass"); +} - describe(@"appearance", ^{ - it(@"should not display notification icon when count is 0", ^{ - [subject setCount:0]; - expect(backgroundView).to.haveValidSnapshot(); - }); - - it(@"should display notification icon when count is not zero", ^{ - expect(backgroundView).to.haveValidSnapshotNamed(@"default_5"); - }); - - it(@"should have red background and white label by default", ^{ - expect(backgroundView).to.haveValidSnapshotNamed(@"default_5"); - }); - - it(@"should display the icon centered in the top right corner of the target view by default", ^{ - expect(backgroundView).to.haveValidSnapshotNamed(@"default_5"); - }); - - it(@"should adjust icon width for larger count", ^{ - [subject setCount:375]; - expect(backgroundView).to.haveValidSnapshot(); - }); - }); - - describe(@"adjustment methods", ^{ - it(@"should look right with updated notification icon frame", ^{ - [subject setCircleAtFrame:CGRectMake(25.0, 30.0, 20.0, 15.0)]; - expect(backgroundView).to.haveValidSnapshot(); - }); - - it(@"should look right with updated circle color and label color ", ^{ - [subject setCircleColor:[UIColor yellowColor] labelColor:[UIColor blackColor]]; - expect(backgroundView).to.haveValidSnapshot(); - }); - - it(@"should look right with moved notification icon", ^{ - [subject moveCircleByX:-20.0 Y:30.0]; - expect(backgroundView).to.haveValidSnapshot(); - }); - - it(@"should look right with scaled notification icon", ^{ - [subject scaleCircleSizeBy:1.5]; - expect(backgroundView).to.haveValidSnapshot(); - }); - }); - - describe(@"changing the count", ^{ - it(@"should look right when count is incremented", ^{ - [subject increment]; - expect(backgroundView).to.haveValidSnapshot(); - }); - - it(@"should look right when count is incremented by value", ^{ - [subject incrementBy:3]; - expect(backgroundView).to.haveValidSnapshot(); - }); - - it(@"should look right when count is decremented", ^{ - [subject decrement]; - expect(backgroundView).to.haveValidSnapshot(); - }); - - it(@"should look right when count is decremented by value", ^{ - [subject decrementBy:3]; - expect(backgroundView).to.haveValidSnapshot(); - }); - }); - - describe(@"hideCount", ^{ - it(@"should look right with hidden count", ^{ - [subject showCount]; - [subject hideCount]; - expect(backgroundView).to.haveValidSnapshot(); - }); - }); - - describe(@"showCount", ^{ - it(@"should look right with visible count", ^{ - [subject hideCount]; - [subject showCount]; - expect(backgroundView).to.haveValidSnapshotNamed(@"default_5"); - }); - }); - - describe(@"animations", ^{ - describe(@"pop", ^{ - it(@"should look right when animation is completed", ^{ - [subject pop]; - expect(backgroundView).to.haveValidSnapshotNamed(@"default_5"); - }); - }); - - describe(@"blink", ^{ - it(@"should look right when animation is completed", ^{ - [subject blink]; - expect(backgroundView).to.haveValidSnapshotNamed(@"default_5"); - }); - }); - - describe(@"bump", ^{ - it(@"should look right when animation is completed", ^{ - [subject bump]; - expect(backgroundView).to.haveValidSnapshotNamed(@"default_5"); - }); - }); - }); -}); +- (void)testPerformanceExample { + // This is an example of a performance test case. + [self measureBlock:^{ + // Put the code you want to measure the time of here. + }]; +} -SpecEnd \ No newline at end of file +@end diff --git a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/default_5@2x.png b/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/default_5@2x.png deleted file mode 100644 index 09fb662..0000000 Binary files a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/default_5@2x.png and /dev/null differ diff --git a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_adjustment_methods_should_look_right_with_moved_notification_icon@2x.png b/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_adjustment_methods_should_look_right_with_moved_notification_icon@2x.png deleted file mode 100644 index 62bbb2e..0000000 Binary files a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_adjustment_methods_should_look_right_with_moved_notification_icon@2x.png and /dev/null differ diff --git a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_adjustment_methods_should_look_right_with_scaled_notification_icon@2x.png b/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_adjustment_methods_should_look_right_with_scaled_notification_icon@2x.png deleted file mode 100644 index 518f606..0000000 Binary files a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_adjustment_methods_should_look_right_with_scaled_notification_icon@2x.png and /dev/null differ diff --git a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_adjustment_methods_should_look_right_with_updated_circle_color_and_label_color@2x.png b/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_adjustment_methods_should_look_right_with_updated_circle_color_and_label_color@2x.png deleted file mode 100644 index 0a0b2b9..0000000 Binary files a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_adjustment_methods_should_look_right_with_updated_circle_color_and_label_color@2x.png and /dev/null differ diff --git a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_adjustment_methods_should_look_right_with_updated_notification_icon_frame@2x.png b/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_adjustment_methods_should_look_right_with_updated_notification_icon_frame@2x.png deleted file mode 100644 index c9e55c3..0000000 Binary files a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_adjustment_methods_should_look_right_with_updated_notification_icon_frame@2x.png and /dev/null differ diff --git a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_appearance_should_adjust_icon_width_for_larger_count@2x.png b/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_appearance_should_adjust_icon_width_for_larger_count@2x.png deleted file mode 100644 index c03f907..0000000 Binary files a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_appearance_should_adjust_icon_width_for_larger_count@2x.png and /dev/null differ diff --git a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_appearance_should_not_display_notification_icon_when_count_is_0@2x.png b/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_appearance_should_not_display_notification_icon_when_count_is_0@2x.png deleted file mode 100644 index 7083e3c..0000000 Binary files a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_appearance_should_not_display_notification_icon_when_count_is_0@2x.png and /dev/null differ diff --git a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_changing_the_count_should_look_right_when_count_is_decremented@2x.png b/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_changing_the_count_should_look_right_when_count_is_decremented@2x.png deleted file mode 100644 index c95fba0..0000000 Binary files a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_changing_the_count_should_look_right_when_count_is_decremented@2x.png and /dev/null differ diff --git a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_changing_the_count_should_look_right_when_count_is_decremented_by_value@2x.png b/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_changing_the_count_should_look_right_when_count_is_decremented_by_value@2x.png deleted file mode 100644 index 33a5bc6..0000000 Binary files a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_changing_the_count_should_look_right_when_count_is_decremented_by_value@2x.png and /dev/null differ diff --git a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_changing_the_count_should_look_right_when_count_is_incremented@2x.png b/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_changing_the_count_should_look_right_when_count_is_incremented@2x.png deleted file mode 100644 index ef609a6..0000000 Binary files a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_changing_the_count_should_look_right_when_count_is_incremented@2x.png and /dev/null differ diff --git a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_changing_the_count_should_look_right_when_count_is_incremented_by_value@2x.png b/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_changing_the_count_should_look_right_when_count_is_incremented_by_value@2x.png deleted file mode 100644 index a6ea5f9..0000000 Binary files a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_changing_the_count_should_look_right_when_count_is_incremented_by_value@2x.png and /dev/null differ diff --git a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_hideCount_should_look_right_with_hidden_count@2x.png b/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_hideCount_should_look_right_with_hidden_count@2x.png deleted file mode 100644 index 704520e..0000000 Binary files a/RKNotificationHubTests/ReferenceImages/RKNotificationHubSpec/visuals_hideCount_should_look_right_with_hidden_count@2x.png and /dev/null differ diff --git a/Rakefile b/Rakefile deleted file mode 100644 index a71820a..0000000 --- a/Rakefile +++ /dev/null @@ -1,13 +0,0 @@ -desc "Run the test suite" - -task :test do - system "pod install" - - build = "xcodebuild \ - -workspace RKNotificationHub.xcworkspace \ - -scheme RKNotificationHub \ - -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.1'" - system "#{build} test | xcpretty --test --color" -end - -task :default => :test \ No newline at end of file