Welcome to the RSpec File Generator extension for Visual Studio Code! This tool is designed to boost the efficiency of Ruby on Rails developers by automating the creation of RSpec test files directly from the VS Code interface with just a right-click.
Features
This extension provides a seamless experience for generating RSpec test files:
Context Menu Integration: Right-click any Ruby file and select "Generate RSpec File" to create a corresponding test file in the spec directory with the _spec.rb suffix.
Automatic Directory Management: Automatically creates any necessary directories in the spec path to maintain the standard Rails directory structure.
Notification Feedback: Receive immediate notification feedback on successful file creation or if the file already exists.
For example, here's how you can use the extension in action:
Requirements
This extension requires:
Visual Studio Code 1.50.0 or higher
Ruby on Rails environment set up in the workspace
Extension Settings
This extension contributes the following settings:
rspecFileGenerator.enable: Enable/disable this feature.
rspecFileGenerator.createSpecDirectory: Automatically create spec directory if it does not exist.
Known Issues
Currently, there are no known issues. Should any arise, they will be listed here to help avoid duplicate issue reporting.