rubocop noise: fixes FrozenStringLiteralComment
Adding the .ruby-verison file triggered previously un-run cops, specifically: This cop is designed to help upgrade to Ruby 3.0. It will add the comment `# frozen_string_literal: true` to the top of files to enable frozen string literals. Frozen string literals will be default in Ruby 3.0. The comment will be added below a shebang and encoding comment. The frozen string literal comment is only valid in Ruby 2.3+. More info on rubocop [Automatic-Corrections](https://github.com/bbatsov/rubocop/wiki/Automatic-Corrections)
This commit is contained in:
parent
20614a7fce
commit
4bbd93ded1
@ -1 +1 @@
|
|||||||
rvm --ruby-version use 2.3.1
|
2.3.1
|
||||||
|
1
Gemfile
1
Gemfile
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
gem 'figaro', '~> 1.1.1'
|
gem 'figaro', '~> 1.1.1'
|
||||||
|
@ -268,7 +268,7 @@ GEM
|
|||||||
unf (0.1.4)
|
unf (0.1.4)
|
||||||
unf_ext
|
unf_ext
|
||||||
unf_ext (0.0.7.2)
|
unf_ext (0.0.7.2)
|
||||||
unicode-display_width (1.1.0)
|
unicode-display_width (1.1.1)
|
||||||
web-console (3.3.1)
|
web-console (3.3.1)
|
||||||
actionview (>= 5.0)
|
actionview (>= 5.0)
|
||||||
activemodel (>= 5.0)
|
activemodel (>= 5.0)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# A sample Guardfile
|
# A sample Guardfile
|
||||||
# More info at https://github.com/guard/guard#readme
|
# More info at https://github.com/guard/guard#readme
|
||||||
|
|
||||||
|
1
Rakefile
1
Rakefile
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
||||||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module ApplicationCable
|
module ApplicationCable
|
||||||
class Channel < ActionCable::Channel::Base
|
class Channel < ActionCable::Channel::Base
|
||||||
end
|
end
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module ApplicationCable
|
module ApplicationCable
|
||||||
class Connection < ActionCable::Connection::Base
|
class Connection < ActionCable::Connection::Base
|
||||||
end
|
end
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module Admin
|
module Admin
|
||||||
class AuthController < AdminController
|
class AuthController < AdminController
|
||||||
skip_before_action :authorize_admin
|
skip_before_action :authorize_admin
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module Admin
|
module Admin
|
||||||
class ProfileController < AdminController
|
class ProfileController < AdminController
|
||||||
def view
|
def view
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module Admin
|
module Admin
|
||||||
class QuestionController < AdminController
|
class QuestionController < AdminController
|
||||||
def index
|
def index
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module Admin
|
module Admin
|
||||||
class QuizController < AdminController
|
class QuizController < AdminController
|
||||||
def index
|
def index
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module Admin
|
module Admin
|
||||||
class UserController < AdminController
|
class UserController < AdminController
|
||||||
def index
|
def index
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class AdminController < ApplicationController
|
class AdminController < ApplicationController
|
||||||
layout 'admin'
|
layout 'admin'
|
||||||
before_action :authorize_admin
|
before_action :authorize_admin
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class ApplicationController < ActionController::Base
|
class ApplicationController < ActionController::Base
|
||||||
protect_from_forgery with: :exception
|
protect_from_forgery with: :exception
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class CandidateController < ApplicationController
|
class CandidateController < ApplicationController
|
||||||
before_action :authorize_candidate, except: [:login, :validate, :live_coder]
|
before_action :authorize_candidate, except: [:login, :validate, :live_coder]
|
||||||
before_action :send_to_oops, only: [:login]
|
before_action :send_to_oops, only: [:login]
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class QuizController < ApplicationController
|
class QuizController < ApplicationController
|
||||||
before_action :authorize_candidate
|
before_action :authorize_candidate
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class RecruiterController < ApplicationController
|
class RecruiterController < ApplicationController
|
||||||
before_action :authorize_recruiter, except: [:login, :auth]
|
before_action :authorize_recruiter, except: [:login, :auth]
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class ReviewController < ApplicationController
|
class ReviewController < ApplicationController
|
||||||
before_action :authorize_reviewer, except: [:login, :auth]
|
before_action :authorize_reviewer, except: [:login, :auth]
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
module ApplicationHelper
|
module ApplicationHelper
|
||||||
def experience_options val
|
def experience_options val
|
||||||
options_for_select([
|
options_for_select([
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class ApplicationJob < ActiveJob::Base
|
class ApplicationJob < ActiveJob::Base
|
||||||
end
|
end
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class ApplicationMailer < ActionMailer::Base
|
class ApplicationMailer < ActionMailer::Base
|
||||||
default from: ENV['default_mail_from']
|
default from: ENV['default_mail_from']
|
||||||
layout 'mailer'
|
layout 'mailer'
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class CandidateMailer < ApplicationMailer
|
class CandidateMailer < ApplicationMailer
|
||||||
def welcome candidate
|
def welcome candidate
|
||||||
@candidate = candidate
|
@candidate = candidate
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class RecruiterMailer < ApplicationMailer
|
class RecruiterMailer < ApplicationMailer
|
||||||
def candidate_created candidate
|
def candidate_created candidate
|
||||||
@candidate = candidate
|
@candidate = candidate
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class ReviewerMailer < ApplicationMailer
|
class ReviewerMailer < ApplicationMailer
|
||||||
def candidate_submission candidate
|
def candidate_submission candidate
|
||||||
@candidate = candidate
|
@candidate = candidate
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class UserMailer < ApplicationMailer
|
class UserMailer < ApplicationMailer
|
||||||
def password_reset user
|
def password_reset user
|
||||||
@user = user
|
@user = user
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class Answer < ApplicationRecord
|
class Answer < ApplicationRecord
|
||||||
serialize :answer
|
serialize :answer
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class ApplicationRecord < ActiveRecord::Base
|
class ApplicationRecord < ActiveRecord::Base
|
||||||
self.abstract_class = true
|
self.abstract_class = true
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class Candidate < ApplicationRecord
|
class Candidate < ApplicationRecord
|
||||||
belongs_to :quiz
|
belongs_to :quiz
|
||||||
has_many :questions, -> { order("sort") }, through: :quiz
|
has_many :questions, -> { order("sort") }, through: :quiz
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class Question < ApplicationRecord
|
class Question < ApplicationRecord
|
||||||
serialize :input_options
|
serialize :input_options
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class Quiz < ApplicationRecord
|
class Quiz < ApplicationRecord
|
||||||
has_many :questions, -> { order(:sort) }
|
has_many :questions, -> { order(:sort) }
|
||||||
has_many :candidates
|
has_many :candidates
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class User < ApplicationRecord
|
class User < ApplicationRecord
|
||||||
has_secure_password
|
has_secure_password
|
||||||
has_many :candidates, foreign_key: "recruiter_id"
|
has_many :candidates, foreign_key: "recruiter_id"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'openssl'
|
require 'openssl'
|
||||||
require 'base64'
|
require 'base64'
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class SkillConfig < Settingslogic
|
class SkillConfig < Settingslogic
|
||||||
source "#{Rails.root}/config/application.yml"
|
source "#{Rails.root}/config/application.yml"
|
||||||
namespace Rails.env
|
namespace Rails.env
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class AnswerFormatValidator < ActiveModel::EachValidator
|
class AnswerFormatValidator < ActiveModel::EachValidator
|
||||||
def validate_each(record, attribute, value)
|
def validate_each(record, attribute, value)
|
||||||
send(record.question.input_type, record, attribute, value)
|
send(record.question.input_type, record, attribute, value)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class EmailFormatValidator < ActiveModel::EachValidator
|
class EmailFormatValidator < ActiveModel::EachValidator
|
||||||
def validate_each(record, attribute, value)
|
def validate_each(record, attribute, value)
|
||||||
# EMAIL regex test
|
# EMAIL regex test
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class InputOptionsPresenceValidator < ActiveModel::EachValidator
|
class InputOptionsPresenceValidator < ActiveModel::EachValidator
|
||||||
def validate_each(record, attribute, value)
|
def validate_each(record, attribute, value)
|
||||||
return true unless record.input_type =~ /radio|check/i
|
return true unless record.input_type =~ /radio|check/i
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class CandidateQuiz
|
class CandidateQuiz
|
||||||
attr_reader :candidate_id
|
attr_reader :candidate_id
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class CandidateQuizQuestion
|
class CandidateQuizQuestion
|
||||||
attr_reader :row
|
attr_reader :row
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class QuizStatus
|
class QuizStatus
|
||||||
attr_reader :candidate
|
attr_reader :candidate
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class Reminder
|
class Reminder
|
||||||
def initialize
|
def initialize
|
||||||
@collection = reminder_collection
|
@collection = reminder_collection
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# This file is used by Rack-based servers to start the application.
|
# This file is used by Rack-based servers to start the application.
|
||||||
|
|
||||||
require_relative 'config/environment'
|
require_relative 'config/environment'
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require_relative 'boot'
|
require_relative 'boot'
|
||||||
|
|
||||||
require 'rails/all'
|
require 'rails/all'
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
||||||
|
|
||||||
require 'bundler/setup' # Set up gems listed in the Gemfile.
|
require 'bundler/setup' # Set up gems listed in the Gemfile.
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Load the Rails application.
|
# Load the Rails application.
|
||||||
require_relative 'application'
|
require_relative 'application'
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
Rails.application.configure do
|
Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb.
|
# Settings specified here will take precedence over those in config/application.rb.
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
Rails.application.configure do
|
Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb.
|
# Settings specified here will take precedence over those in config/application.rb.
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
Rails.application.configure do
|
Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb.
|
# Settings specified here will take precedence over those in config/application.rb.
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# ApplicationController.renderer.defaults.merge!(
|
# ApplicationController.renderer.defaults.merge!(
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# Version of your assets, change this if you want to expire all your assets.
|
# Version of your assets, change this if you want to expire all your assets.
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# Specify a serializer for the signed and encrypted cookie jars.
|
# Specify a serializer for the signed and encrypted cookie jars.
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# TODO: needs better wrapping instead of nuking
|
# TODO: needs better wrapping instead of nuking
|
||||||
# https://rubyplus.com/articles/3401
|
# https://rubyplus.com/articles/3401
|
||||||
ActionView::Base.field_error_proc = proc do |html_tag, _instance|
|
ActionView::Base.field_error_proc = proc do |html_tag, _instance|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# Configure sensitive parameters which will be filtered from the log file.
|
# Configure sensitive parameters which will be filtered from the log file.
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# Add new inflection rules using the following format. Inflections
|
# Add new inflection rules using the following format. Inflections
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
Mailjet.configure do |config|
|
Mailjet.configure do |config|
|
||||||
config.api_key = ENV['mailjet_key']
|
config.api_key = ENV['mailjet_key']
|
||||||
config.secret_key = ENV['mailjet_secret']
|
config.secret_key = ENV['mailjet_secret']
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# Add new mime types for use in respond_to blocks:
|
# Add new mime types for use in respond_to blocks:
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
#
|
#
|
||||||
# This file contains migration options to ease your Rails 5.0 upgrade.
|
# This file contains migration options to ease your Rails 5.0 upgrade.
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
Rails.application.config.session_store :cookie_store, key: '_skill-assessment-app_session'
|
Rails.application.config.session_store :cookie_store, key: '_skill-assessment-app_session'
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# This file contains settings for ActionController::ParamsWrapper which
|
# This file contains settings for ActionController::ParamsWrapper which
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Puma can serve each request in a thread from an internal thread pool.
|
# Puma can serve each request in a thread from an internal thread pool.
|
||||||
# The `threads` method setting takes two numbers a minimum and maximum.
|
# The `threads` method setting takes two numbers a minimum and maximum.
|
||||||
# Any libraries that use thread pools should be configured to match
|
# Any libraries that use thread pools should be configured to match
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
post "/admin/login", to: "admin/auth#auth", as: :admin_auth
|
post "/admin/login", to: "admin/auth#auth", as: :admin_auth
|
||||||
get "/admin/login", to: "admin/auth#login", as: :admin_login
|
get "/admin/login", to: "admin/auth#login", as: :admin_login
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
%w(
|
%w(
|
||||||
.ruby-version
|
.ruby-version
|
||||||
.rbenv-vars
|
.rbenv-vars
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class DbInit < ActiveRecord::Migration[5.0]
|
class DbInit < ActiveRecord::Migration[5.0]
|
||||||
def change
|
def change
|
||||||
create_table :candidates do |t|
|
create_table :candidates do |t|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class AddQuizToCandidate < ActiveRecord::Migration[5.0]
|
class AddQuizToCandidate < ActiveRecord::Migration[5.0]
|
||||||
def change
|
def change
|
||||||
add_column :candidates, :quiz_id, :integer
|
add_column :candidates, :quiz_id, :integer
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class AddAttachmentsToQuestions < ActiveRecord::Migration[5.0]
|
class AddAttachmentsToQuestions < ActiveRecord::Migration[5.0]
|
||||||
def change
|
def change
|
||||||
add_column :questions, :attachment, :string
|
add_column :questions, :attachment, :string
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class AddNameToQuiz < ActiveRecord::Migration[5.0]
|
class AddNameToQuiz < ActiveRecord::Migration[5.0]
|
||||||
def change
|
def change
|
||||||
add_column :quizzes, :name, :string, after: :id
|
add_column :quizzes, :name, :string, after: :id
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class AddResetsToUsers < ActiveRecord::Migration[5.0]
|
class AddResetsToUsers < ActiveRecord::Migration[5.0]
|
||||||
def change
|
def change
|
||||||
add_column :users, :reset_token, :string
|
add_column :users, :reset_token, :string
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class EncodeCandidateEmails < ActiveRecord::Migration[5.0]
|
class EncodeCandidateEmails < ActiveRecord::Migration[5.0]
|
||||||
def change
|
def change
|
||||||
sql = "select id, email from candidates;"
|
sql = "select id, email from candidates;"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
namespace :reminders do
|
namespace :reminders do
|
||||||
desc "send reminders to stagnate quizes"
|
desc "send reminders to stagnate quizes"
|
||||||
task send_all: :environment do
|
task send_all: :environment do
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
module Admin
|
module Admin
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
module Admin
|
module Admin
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
module Admin
|
module Admin
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
module Admin
|
module Admin
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
module Admin
|
module Admin
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class AdminControllerTest < ActionDispatch::IntegrationTest
|
class AdminControllerTest < ActionDispatch::IntegrationTest
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ApplicationControllerTest < ActionDispatch::IntegrationTest
|
class ApplicationControllerTest < ActionDispatch::IntegrationTest
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class CandidateControllerTest < ActionDispatch::IntegrationTest
|
class CandidateControllerTest < ActionDispatch::IntegrationTest
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class QuizControllerTest < ActionDispatch::IntegrationTest
|
class QuizControllerTest < ActionDispatch::IntegrationTest
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class RecruiterControllerTest < ActionDispatch::IntegrationTest
|
class RecruiterControllerTest < ActionDispatch::IntegrationTest
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ReviewControllerTest < ActionDispatch::IntegrationTest
|
class ReviewControllerTest < ActionDispatch::IntegrationTest
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class QuestionAttachmentsTest < ActionDispatch::IntegrationTest
|
class QuestionAttachmentsTest < ActionDispatch::IntegrationTest
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class QuestionFlowTest < ActionDispatch::IntegrationTest
|
class QuestionFlowTest < ActionDispatch::IntegrationTest
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class QuestionLiveCoderTest < ActionDispatch::IntegrationTest
|
class QuestionLiveCoderTest < ActionDispatch::IntegrationTest
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class CandidateMailerTest < ActionMailer::TestCase
|
class CandidateMailerTest < ActionMailer::TestCase
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Preview all emails at http://localhost:3000/rails/mailers/candidate_mailer
|
# Preview all emails at http://localhost:3000/rails/mailers/candidate_mailer
|
||||||
class CandidateMailerPreview < ActionMailer::Preview
|
class CandidateMailerPreview < ActionMailer::Preview
|
||||||
def welcome
|
def welcome
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Preview all emails at http://localhost:3000/rails/mailers/recruiter_mailer
|
# Preview all emails at http://localhost:3000/rails/mailers/recruiter_mailer
|
||||||
class RecruiterMailerPreview < ActionMailer::Preview
|
class RecruiterMailerPreview < ActionMailer::Preview
|
||||||
def candidate_created
|
def candidate_created
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Preview all emails at http://localhost:3000/rails/mailers/reviewer_mailer
|
# Preview all emails at http://localhost:3000/rails/mailers/reviewer_mailer
|
||||||
class ReviewerMailerPreview < ActionMailer::Preview
|
class ReviewerMailerPreview < ActionMailer::Preview
|
||||||
def candidate_submission
|
def candidate_submission
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
# Preview all emails at http://localhost:3000/rails/mailers/user_mailer
|
# Preview all emails at http://localhost:3000/rails/mailers/user_mailer
|
||||||
class UserMailerPreview < ActionMailer::Preview
|
class UserMailerPreview < ActionMailer::Preview
|
||||||
def password_reset
|
def password_reset
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class RecruiterMailerTest < ActionMailer::TestCase
|
class RecruiterMailerTest < ActionMailer::TestCase
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ReviewerMailerTest < ActionMailer::TestCase
|
class ReviewerMailerTest < ActionMailer::TestCase
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class UserMailerTest < ActionMailer::TestCase
|
class UserMailerTest < ActionMailer::TestCase
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class AnswerTest < ActiveSupport::TestCase
|
class AnswerTest < ActiveSupport::TestCase
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class CandidateTest < ActiveSupport::TestCase
|
class CandidateTest < ActiveSupport::TestCase
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class QuestionTest < ActiveSupport::TestCase
|
class QuestionTest < ActiveSupport::TestCase
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class QuizTest < ActiveSupport::TestCase
|
class QuizTest < ActiveSupport::TestCase
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class UserTest < ActiveSupport::TestCase
|
class UserTest < ActiveSupport::TestCase
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class CryptSerializerTest < ActiveSupport::TestCase
|
class CryptSerializerTest < ActiveSupport::TestCase
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class SkillConfigTest < ActiveSupport::TestCase
|
class SkillConfigTest < ActiveSupport::TestCase
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
ENV['RAILS_ENV'] ||= 'test'
|
ENV['RAILS_ENV'] ||= 'test'
|
||||||
|
|
||||||
# https://github.com/colszowka/simplecov
|
# https://github.com/colszowka/simplecov
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
class AnswerValidatable
|
class AnswerValidatable
|
||||||
include ActiveModel::Validations
|
include ActiveModel::Validations
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user