Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Using ghrunit

  • Loading branch information...
commit a9abae9c3eae0c5a200b50773948d9585cf4cab6 1 parent e4282ce
Piet Jaspers authored

Showing 2 changed files with 4 additions and 8 deletions. Show diff stats Hide diff stats

  1. +3 7 Rakefile
  2. +1 1  tests/TinUtilityTest.m
10 Rakefile
... ... @@ -1,11 +1,7 @@
1 1 require 'rake'
  2 +require "ghrunit"
2 3
3   -task :default => [:default]
4   -
5   -desc "Default action"
6   -task :default do
7   -
8   -end
  4 +task :default => [:test]
9 5
10 6 desc "Cleans the build folder"
11 7 task :clean do
@@ -15,5 +11,5 @@ end
15 11 desc "Cleans the build folder"
16 12 task :test do
17 13 ENV['GHUNIT_CLI']="1"
18   - puts %x{xcodebuild -target tests -configuration Debug -sdk iphonesimulator build}
  14 + GHRunit.new(:target => "tests")
19 15 end
2  tests/TinUtilityTest.m
@@ -54,7 +54,7 @@ - (void)testTimeOutInSeconds {
54 54 ASIHTTPRequest *aRequest = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://iets.com"]];
55 55 [tinInstance setOptionsOnRequest:aRequest];
56 56 // TODO: Type mismatch
57   - GHAssertEquals(20, (NSTimeInterval)aRequest.timeOutSeconds, nil);
  57 + GHAssertTrue(20 == aRequest.timeOutSeconds, nil);
58 58 }
59 59
60 60 - (void)testBaseURIWihtoutHTTPURL {

0 comments on commit a9abae9

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