HipByte/RubyMotion — pull request #158 by MarkVillacampa (2014-05-12 17:32:32+00:00)
Title: Fail fast and show an error if no spec files are found

If there are no spec files, when running `rake spec`, the app will crash at runtime with this error message:

```
2014-05-12 19:06:02.608 App[69351:70b] *** Terminating app due to uncaught exception 'NoMethodError', reason: 'spec.rb:476:in `current_context': undefined method `[]' for nil:NilClass (NoMethodError)
```

Since new Rubymotion projects come with a `main_spec.rb` sample spec, this will not be a common problem. However this can be very helpful when using the `files` env variable to select only some spec files (I run into this all the time).

The previous error will still happen if we have empty spec files. This could be solved by checking at runtime if `@contexts` is empty in `spec.rb`. But I'm not sure if this is recommended/necessary.