Functional View and Controller Testing with RubyMotion
RubyMotion now features a brand-new testing layer that lets you write functional specifications for the views and controllers of your application.
describe "The Timer view controller" do tests TimerController it "has a timer label" do view('Tap to start').should.not == nil end end
This feature was engineered by our friends at Fingertips and ships today in RubyMotion 1.15. You can learn more about the new APIs in the Testing RubyMotion Apps article in our developer center. The source code is also available in the HipByte/RubyMotion repository on GitHub.