Skip to content

Instantly share code, notes, and snippets.

View shinkufencer's full-sized avatar

ikuota / shinkufencer shinkufencer

View GitHub Profile
@shinkufencer
shinkufencer / rescue_spec.rb
Created May 8, 2018 13:52
exception後の挙動を確かめるrspec
require "rspec"
### target class
class Calculate
def initialize
# わかりやすい初期値をいれる
@result = -9999
end
equire: './ci/custom_cops/lib/custom_cops'
AllCops:
TargetRubyVersion: 2.4
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
# to ignore them, so only the ones explicitly set in this file are enabled.
DisabledByDefault: true
Exclude:
- '**/templates/**/*'
- '**/vendor/**/*'