Patches: Browse | Submit New | Admin

[#7009] Test support in Ruby ftplugin

Date:
2006-12-02 11:07
Priority:
3
Submitted By:
Sylvain Joyeux (lapinot)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Test support in Ruby ftplugin

Detailed description
The attached patch adds the following:
  - a Test <filename> [testname] command which 
    * searches for a test/ directory going from the current directoy and up.
    * a file test/filename.rb or test/test_filename.rb
    * if no testname is given, does "make <path>/test/test_filename.rb" in the test directory and adds
-n testname if testname is given
  - the following mappings:
    * gTw runs the test in the current file under the current word
    * gTf runs alls the test in the current file
    * gt repeats the last test

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-02-01 08:04
Sender: Sylvain Joyeux

Well, obviously better mappings are
  rTw, rTf and rt

as 

  Ruby Test Word, Ruby Test File and Ruby Test

Attached Files:

Name Description Download
ruby-test-support.diff vim-ruby test support Download

Changes:

Field Old Value Date By
File Added995: ruby-test-support.diff2006-12-02 11:07lapinot