maltize / sublime-text-2-ruby-tests

Sublime Text 2 plugin for running ruby tests! (Unit, RSpec, Cucumber)
722 stars 119 forks source link

handle mixed style unit test files as well as tests with '+' in their na... #224

Closed modosc closed 5 years ago

modosc commented 10 years ago

this fixes the the unit test regex to handle files where there are tests declared in both styles, ie:

def test_foo
end

test "bar" do
end

it also adds '+' to the list of allowable characters in a test name.

modosc commented 9 years ago

also another fix - files with test in their name were always matched as test unit tests, even if they weren't (ie, foo_test_spec.rb which should be run as rspec). i rearranged the matching order so that Rspec and Cucumber checks are first to avoid this.