Skip to content

pippokairos/rspec-runner.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RSpec Runner

This is a simple (Neo)Vim plugin that allows you to run RSpec tests from within a Rails file.

Installation

Use your favorite plugin manager to install this plugin. For example, with lazy.nvim:

  {
    'pippokairos/rspec-runner.nvim',
    dependencies = { 'nvim-lua/plenary.nvim' },
    init = function()
      local rspec_runner = require 'rspec-runner'

      vim.keymap.set('n', '<leader>rr', function()
        rspec_runner.run_file()
      end, { desc = '[R]un [R]Spec', noremap = false, silent = false })
    end,
  },
}

Usage

Call the run_file function from within a Rails file to run the corresponding RSpec test, assuming it exists and its path follows Rails conventions.

About

A Neovim plugin to run RSpec tests for the Ruby on Rails file in the current buffer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages