atom-ruby-test
atom-ruby-test copied to clipboard
Run tests for current code file
I would like to be able to run the tests for a certain file from within that file, without having to switch over to the spec file.
I figure since test directories will commonly mirror the code directory in Ruby projects, we should be able to make an educated guess about where the test file might be. 😀
Cool. What should it do if the current file is neither the test file nor the file under test?
@moxley prompt to create the new test file. With a guess of the folder and filename
if rspec detected
so app/models/contact.rb would suggest spec/models/contact_spec.rb