Permalink
Browse files

Using ghrunit

  • Loading branch information...
pjaspers
pjaspers committed Jun 21, 2011
1 parent e4282ce commit a9abae9c3eae0c5a200b50773948d9585cf4cab6
Showing with 4 additions and 8 deletions.
  1. +3 −7 Rakefile
  2. +1 −1 tests/TinUtilityTest.m
View
@@ -1,11 +1,7 @@
require 'rake'
+require "ghrunit"
-task :default => [:default]
-
-desc "Default action"
-task :default do
-
-end
+task :default => [:test]
desc "Cleans the build folder"
task :clean do
@@ -15,5 +11,5 @@ end
desc "Cleans the build folder"
task :test do
ENV['GHUNIT_CLI']="1"
- puts %x{xcodebuild -target tests -configuration Debug -sdk iphonesimulator build}
+ GHRunit.new(:target => "tests")
end
View
@@ -54,7 +54,7 @@ - (void)testTimeOutInSeconds {
ASIHTTPRequest *aRequest = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://iets.com"]];
[tinInstance setOptionsOnRequest:aRequest];
// TODO: Type mismatch
- GHAssertEquals(20, (NSTimeInterval)aRequest.timeOutSeconds, nil);
+ GHAssertTrue(20 == aRequest.timeOutSeconds, nil);
}
- (void)testBaseURIWihtoutHTTPURL {

0 comments on commit a9abae9

Please sign in to comment.