Skip to content

Instantly share code, notes, and snippets.

@jonreid
Created October 13, 2011 04:52
Show Gist options
  • Select an option

  • Save jonreid/1283418 to your computer and use it in GitHub Desktop.

Select an option

Save jonreid/1283418 to your computer and use it in GitHub Desktop.

Revisions

  1. jonreid created this gist Oct 13, 2011.
    15 changes: 15 additions & 0 deletions gistfile1.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    - (void)testArrayFromURLStringArray
    {
    // given
    NSArray *URLStrings = [NSArray arrayWithObjects:@"one", @"two", nil];

    // when
    NSMutableArray *downloads = [MyDownloader arrayFromURLStringArray:URLStrings];

    // then
    assertThat(downloads, hasCountOf(2));
    MyDownloader *download = [downloads objectAtIndex:0];
    assertThat([image URLString], is(@"one"));
    download = [downloads objectAtIndex:1];
    assertThat([image URLString], is(@"two"));
    }