Skip to content

Commit ba23bd4

Browse files
author
Jacek Kubiak
committed
Remove mocha as its not used and rename method as suggested by reviewer
1 parent 3222e47 commit ba23bd4

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

Gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ gem 'pry'
55
gem 'posix-spawn'
66
gem 'sexp_processor'
77
gem 'json'
8-
gem 'mocha'
98

109
group :test do
1110
gem 'rake'

Gemfile.lock

-4
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,13 @@ GEM
88
ruby_parser (~> 3.0)
99
sexp_processor (~> 4.0)
1010
json (1.8.3)
11-
metaclass (0.0.4)
1211
method_source (0.8.2)
1312
minitest (5.8.0)
1413
minitest-reporters (1.0.20)
1514
ansi
1615
builder
1716
minitest (>= 5.0)
1817
ruby-progressbar
19-
mocha (1.1.0)
20-
metaclass (~> 0.0.1)
2118
posix-spawn (0.3.11)
2219
pry (0.10.1)
2320
coderay (~> 1.1.0)
@@ -38,7 +35,6 @@ DEPENDENCIES
3835
json
3936
minitest
4037
minitest-reporters
41-
mocha
4238
posix-spawn
4339
pry
4440
rake

lib/cc/engine/analyzers/helpers/main.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module Helpers
77
BASE_POINTS = 10_000
88

99
def flay
10-
@flay ||= ::Flay.new(options)
10+
@flay ||= ::Flay.new(flay_options)
1111
end
1212

1313
def new_violation(issue, location, other)
@@ -49,7 +49,7 @@ def format_locations(other)
4949
other.map { |location| format_location(location) }
5050
end
5151

52-
def options
52+
def flay_options
5353
{
5454
diff: false,
5555
mass: mass_threshold,

spec/spec_helper.rb

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
require 'minitest/autorun'
33
require 'minitest/reporters'
44
require 'minitest/unit'
5-
require 'mocha/mini_test'
65
Minitest::Reporters.use! Minitest::Reporters::DefaultReporter.new
76

87
def read_up

0 commit comments

Comments
 (0)