Wednesday, March 22, 2023
HomeRuby On RailsFrom Editor to IDE | Drifting Ruby

From Editor to IDE | Drifting Ruby


# Terminal
gem set up solargraph
gem set up ruby-debug-ide
gem set up rubocop
# check/test_helper.rb
ENV['RAILS_ENV'] ||="check"
require_relative '../config/atmosphere'
require 'rails/test_help'

class ActiveSupport::TestCase
  # Run exams in parallel with specified employees
  parallelize(employees: 1)

  # Setup all fixtures in check/fixtures/*.yml for all exams in alphabetical order.
  fixtures :all

  # Add extra helper strategies for use by all exams right here...
finish
# .vscode/launch.json
{
  // Use IntelliSense to find out about potential attributes.
  // Hover to view descriptions of present attributes.
  // For extra info, go to: https://go.microsoft.com/fwlink/?linkid=830387
  "model": "0.2.0",
  "configurations": [
    {
      "name": "Rails server",
      "type": "Ruby",
      "request": "launch",
      "program": "${workspaceRoot}/bin/rails",
      "args": [
        "server"
      ]
    }
  ]
}
# .rubocop.yml
Fashion/Documentation:
  Enabled: false
Fashion/FrozenStringLiteralComment:
  Enabled: false
Fashion/EmptyMethod:
  Enabled: false
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments