pivotal/jasmine-gem — pull request #118 by dimacus (2012-11-28 19:31:32+00:00)
Title: Fixing some bugs in how post run result_processor collects spec names

Ran into a frustrating error with spec reporter, where the name of file is not listed in the rspec trace, and all you get in return is

RuntimeError in '....'
/../lib/jasmine/rspec_formatter.rb:72:in `report_spec'
/../lib/jasmine/rspec_formatter.rb:42:in `declare_spec'

After doing some snooping around, I realized that ResultsProcessor::example_locations is not overly smart and skips over specs and groups that use things such as "context" or "returns" in them.

I added 15 tests to results_processor_spec.rb, added a couple more examples to example_spec.js and modified example_locations to be able to support other forms of specs.

I have some code that tries to guess the spec location based on partial name matches, this becomes useful if user is doing "shared" or "behaves_like" examples. I'll include them in a next pull request if you guys want.

Also, I need to clean up the specs i wrote, but i'm new to rspec so that might be more work next time.

Hope this helps