Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1013 Bytes

README.md

File metadata and controls

40 lines (34 loc) · 1013 Bytes

rails-rspec-file-toggle

This is an extension for Visual Studio Code. In rails project with rspec, toggle between spec and tested file.

Features

[
    {
        "command": "extension.railsRspecFileToggle",
        "title": "Rails Rspec File Toggle",
        "key": "cmd+alt+r"
    }
]

screenshot

Extension Settings

"railsRspecFileToggle.convertDefinition": {
    "default": [
        {
            "app_directory": "controllers",
            "spec_directory": "requests",
            "app_suffix": "_controller",
            "spec_suffix": ""
        }
    ],
    "description": "convert app directory path `app/${app_directory}/**/*${app_suffix}.rb` to spec path `spec/${spec_directory}/**/*${spec_suffix}_spec.rb`.",
    "type": "array"
},
"railsRspecFileToggle.rspecDirectory": {
    "default": "spec",
    "description": "rspec directory name.",
    "type": "string"
}