Skip to content

Commit ab8b9dd

Browse files
committed
🚨 Linting
1 parent 048a996 commit ab8b9dd

File tree

4 files changed

+4
-29
lines changed

4 files changed

+4
-29
lines changed

.rubocop_gradual.lock

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,5 @@
11
{
22
"bin/bundle:4041706560": [
33
[67, 5, 20, "ThreadSafety/ClassInstanceVariable: Avoid class instance variables.", 2485198147]
4-
],
5-
"bin/checksums:2906467651": [
6-
[12, 28, 2, "Lint/Syntax: unexpected token error\n(Using Ruby 2.2 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 5858765],
7-
[14, 18, 2, "Lint/Syntax: unexpected token error\n(Using Ruby 2.2 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 5858765],
8-
[20, 1, 4, "Lint/Syntax: unexpected token kELSE\n(Using Ruby 2.2 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 2087423834],
9-
[33, 1, 3, "Lint/Syntax: unexpected token kEND\n(Using Ruby 2.2 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 193405706],
10-
[45, 11, 2, "Lint/Syntax: unexpected token tLSHFT\n(Using Ruby 2.2 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 5859461],
11-
[46, 21, 1, "Lint/Syntax: unexpected token tSTAR\n(Using Ruby 2.2 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 177551],
12-
[47, 17, 1, "Lint/Syntax: unexpected token tSTRING_BEG\n(Using Ruby 2.2 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 177543],
13-
[53, 9, 3, "Lint/Syntax: unexpected token tCONSTANT\n(Using Ruby 2.2 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 193466585],
14-
[54, 14, 3, "Lint/Syntax: unexpected token tCONSTANT\n(Using Ruby 2.2 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 193467647],
15-
[54, 21, 1, "Lint/Syntax: unexpected token tCOLON\n(Using Ruby 2.2 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 177567],
16-
[55, 21, 1, "Lint/Syntax: unexpected token tCOLON\n(Using Ruby 2.2 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 177567],
17-
[56, 22, 4, "Lint/Syntax: unexpected token tCONSTANT\n(Using Ruby 2.2 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 2089414472],
18-
[57, 22, 4, "Lint/Syntax: unexpected token tCONSTANT\n(Using Ruby 2.2 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)", 2089414472]
19-
],
20-
"spec/version_gem/error_spec.rb:3824255504": [
21-
[5, 29, 5, "RSpec/MissingExpectationTargetMethod: Use `.to`, `.not_to` or `.to_not` to set an expectation.", 179970942]
22-
],
23-
"spec/version_gem/ruby_spec.rb:813929132": [
24-
[10, 29, 5, "RSpec/MissingExpectationTargetMethod: Use `.to`, `.not_to` or `.to_not` to set an expectation.", 179970942]
25-
],
26-
"spec/version_gem_spec.rb:482289161": [
27-
[5, 29, 5, "RSpec/MissingExpectationTargetMethod: Use `.to`, `.not_to` or `.to_not` to set an expectation.", 179970942],
28-
[9, 38, 5, "RSpec/MissingExpectationTargetMethod: Use `.to`, `.not_to` or `.to_not` to set an expectation.", 179970942]
294
]
305
}

spec/version_gem/error_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
RSpec.describe(VersionGem::Error) do
44
it "is a standard error" do
5-
expect(described_class).is_a?(StandardError)
5+
expect(described_class).to be_a(StandardError)
66
end
77

88
describe "raise" do

spec/version_gem/ruby_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
let(:engine) { RUBY_ENGINE }
88

99
it "is a module" do
10-
expect(described_class).is_a?(Module)
10+
expect(described_class).to be_a(Module)
1111
end
1212

1313
describe "#gte_minimum_version?" do

spec/version_gem_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
RSpec.describe(VersionGem) do
44
it "is a module" do
5-
expect(described_class).is_a?(Module)
5+
expect(described_class).to be_a(Module)
66
end
77

88
it "extends Version with Basic" do
9-
expect(described_class::Version).is_a?(VersionGem::Basic)
9+
expect(described_class::Version).to be_a(VersionGem::Basic)
1010
end
1111
end

0 commit comments

Comments
 (0)