{"id":20842827,"url":"https://github.com/mudge/runspec.vim","last_synced_at":"2025-05-08T22:42:34.913Z","repository":{"id":2864970,"uuid":"3870100","full_name":"mudge/runspec.vim","owner":"mudge","description":"A Vim plugin to run specs for the current file.","archived":false,"fork":false,"pushed_at":"2020-02-29T08:28:55.000Z","size":32,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T22:42:29.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mudge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-03-29T20:13:17.000Z","updated_at":"2018-07-24T01:31:27.000Z","dependencies_parsed_at":"2022-07-31T13:59:09.766Z","dependency_job_id":null,"html_url":"https://github.com/mudge/runspec.vim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudge%2Frunspec.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudge%2Frunspec.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudge%2Frunspec.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudge%2Frunspec.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mudge","download_url":"https://codeload.github.com/mudge/runspec.vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253160727,"owners_count":21863624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T01:25:38.382Z","updated_at":"2025-05-08T22:42:34.888Z","avatar_url":"https://github.com/mudge.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"runspec.vim [![Build Status](https://travis-ci.org/mudge/runspec.vim.svg?branch=master)](https://travis-ci.org/mudge/runspec.vim)\n===========\n\nA simple Vim plugin to run specs: if the current file ends in `_spec.rb`,\n`_test.rb` or `.feature`, run it; if not, guess where the associated spec file\nis and run that. It also includes a function for toggling between a test file\nand the associated implementation file.\n\nThe plugin will attempt to automatically discover whether you are using\n[RSpec](https://www.relishapp.com/rspec),\n[minitest/spec](http://docs.seattlerb.org/minitest/MiniTest/Spec.html) or\n[Cucumber](https://cucumber.io/) and use [Bundler](http://gembundler.com/) (and\nbinstubs) if appropriate.\n\nInstallation\n------------\n\nI recommend using [Vundle](https://github.com/gmarik/vundle) and then you can\ninstall the plugin by simply adding the following line to your `.vimrc`:\n\n```vim\nBundle 'mudge/runspec.vim'\n```\n\nUsage\n-----\n\nBy default, the plugin will bind to `\u003cLeader\u003et` if it is not already mapped but\nyou can manually map to `\u003cPlug\u003eRunSpecRun` like so:\n\n```vim\nmap \u003cLeader\u003er \u003cPlug\u003eRunSpecRun\n```\n\nYou can override the automatic detection of the appropriate spec runner (e.g.\n`rspec` or `ruby`) by having an executable `script/test` that accepts a spec\nfile as an argument. Note that features will always run with `cucumber`.\n\nTo toggle between having a test file open and the corresponding\nimplementation file, you can map a keybinding to\n`\u003cPlug\u003eRunSpecToggle`, like so:\n\n```vim\nmap \u003cLeader\u003es \u003cPlug\u003eRunSpecToggle\n```\n\nDependencies\n------------\n\nIn order to detect custom test runners accurately, the plugin requires that you are\nusing Bundler and have a valid `Gemfile.lock` (so that it can work with\n`Gemfile`s that only specify `gemspec`).\n\nIf you are not using any gems (e.g. you are using only Ruby's built-in testing\nlibraries) then you should not be affected as the plugin will default to using\n`ruby` as your test runner.\n\nContributions\n-------------\n\nThanks to [William Roe](https://github.com/wjlroe) for contributing the toggle\nfunctionality.\n\nLicense\n-------\n\nCopyright © 2015-2016 Paul Mucur\n\nDistributed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudge%2Frunspec.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmudge%2Frunspec.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudge%2Frunspec.vim/lists"}