moxley / atom-ruby-test

Run Ruby tests, Rspec examples, and Cucumber features from Atom
MIT License
43 stars 36 forks source link

RSpec detection not working when require (rails|spec)_helper comes from .rspec. #55

Closed barelyknown closed 9 years ago

barelyknown commented 9 years ago

RSpec allows rails_helper or spec_helper to be required by default through configuration of the .rspec file:

--color
--require rails_helper

Therefore, atom-ruby-test mistakes RSpec specs for Minitest specs when the require is omitted because it uses this RegExp:

rspecRequireRegExp = new RegExp(/^require(\s+)['"](rails|spec)_helper['"]$/)
moxley commented 9 years ago

@barelyknown: Can you check out the latest release and let me know if that fixes it for you?

barelyknown commented 9 years ago

Looks good :+1: Thanks!