Skip to content
This repository
tag: REL-0.1.0
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 21 lines (13 sloc) 0.6 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

You can add Ruby-based unit tests to any iPhone/Xcode project by changing to the
project's folder in the terminal/console and running:

iphoneruby .

This adds the test framework, a Rakefile, and an `autotest` config file.

You can now create testable Objective-C models/classes using the generator:

$ script/generate model WidgetMaker
create Classes/WidgetMaker.h
create Classes/WidgetMaker.m
create test/test_widget_maker.rb

To run tests you have several options:

1. `rake` or `rake test`
1. `autotest` (after installing the ZenTest gem)

Enjoy iPhone development with Ruby!
Something went wrong with that request. Please try again.