tpope / vim-rails

rails.vim: Ruby on Rails power tools
http://www.vim.org/scripts/script.php?script_id=1567
4.1k stars 383 forks source link

No output when I try to run tests #507

Closed Ruffeng closed 6 years ago

Ruffeng commented 6 years ago

Hi, When I try to run a test file with Rails I find all time that there's no output for my tests( see attached picture). I am not sure if I do something wrong, or I need extra plugins or gems ( I used to run Rspec in my terminal without any problem).

screen shot 2018-01-24 at 10 02 00

Any idea about what can it be...?

Thanks!

tpope commented 6 years ago

Try rails spec SPEC=spec/..._spec.rb (or rake ... for older Rails) in your terminal and see if that works.

Ruffeng commented 6 years ago

There is no output neither with this command. with rspec spec/..._spec.rb it works, but from rails spec it's not rendering what I expect..

tpope commented 6 years ago

The :Rails command is, as the name suggests, hard coded to use the rails command, not rspec. I'm afraid you're on your own or debugging what's going wrong there. Maybe start by temporarily disabling Spring.