pezra / rspec-mode

An RSpec minor mode for Emacs
256 stars 112 forks source link

Using Tramp with rpsec #133

Closed jonnay closed 8 years ago

jonnay commented 8 years ago

I'd like to be able to use tramp with rspec mode, but it looks like the ifle paths are not being translated properly. Ruby is being run properly through tramp on the remote machine, but it's looking for the full tramp path to the spec file.

-*- mode: rspec-compilation; default-directory: "/ssh:root@virtual-machine.local:/path/to/ruby/project/" -*-
RSpec Compilation started at Tue Dec 15 10:26:23

bin/rspec --format documentation /ssh\:root\@virtual-machine.local\:/path/to/ruby/project/spec/models/provisioning/collection_spec.rb
No DRb server is running. Running in local process instead ...
/path/to/ruby/project/bundle/ruby/1.9.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:268:in `load': cannot load such file -- /ssh:root@virtual-machine.local:/path/to/ruby/project/spec/models/provisioning/collection_spec.rb (LoadError)
dgutov commented 8 years ago

Thanks for the report. Please try the current master.

jonnay commented 8 years ago

Totally works! Thank you!