Skip to content

Commit 161f341

Browse files
committed
Fix Lint/UselessConstantScoping
1 parent 1c6c5e8 commit 161f341

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/repo_finder_test.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,6 @@
6262
end
6363
end
6464

65-
private
66-
67-
def mock_octokit(full_name)
68-
mock_items = if full_name.nil?
69-
stub items: []
70-
else
71-
stub items: [stub(full_name: full_name)]
72-
end
73-
stub search_repositories: mock_items
74-
end
75-
7665
FAKE_GEMSPEC = <<~SPEC
7766
--- !ruby/object:Gem::Specification
7867
name: fake
@@ -102,6 +91,17 @@ def mock_octokit(full_name)
10291
- MIT
10392
SPEC
10493

94+
private
95+
96+
def mock_octokit(full_name)
97+
mock_items = if full_name.nil?
98+
stub items: []
99+
else
100+
stub items: [stub(full_name: full_name)]
101+
end
102+
stub search_repositories: mock_items
103+
end
104+
105105
def fake_gemspec(extra = "")
106106
[FAKE_GEMSPEC, extra].compact.join("\n")
107107
end

0 commit comments

Comments
 (0)