diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..1dc16663e --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Run test file (RSpec)", + "type": "shell", + "command": "./bin/rspec", + "args": [ + "${file}" + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "group": "test", + "presentation": { + "reveal": "always", + "panel": "dedicated", + "clear": true + }, + "problemMatcher": [] + }, + { + "label": "Run test at current line (RSpec)", + "type": "shell", + "command": "./bin/rspec", + "args": [ + "${file}:${lineNumber}" + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "group": "test", + "presentation": { + "reveal": "always", + "panel": "dedicated", + "clear": true + }, + "problemMatcher": [] + } + ] +} diff --git a/bin/rspec b/bin/rspec new file mode 100755 index 000000000..93e191c2f --- /dev/null +++ b/bin/rspec @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +# +# This file was generated by Bundler. +# +# The application 'rspec' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) + +require "rubygems" +require "bundler/setup" + +load Gem.bin_path("rspec-core", "rspec")