We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c6c5e8 commit 161f341Copy full SHA for 161f341
test/repo_finder_test.rb
@@ -62,17 +62,6 @@
62
end
63
64
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
76
FAKE_GEMSPEC = <<~SPEC
77
--- !ruby/object:Gem::Specification
78
name: fake
@@ -102,6 +91,17 @@ def mock_octokit(full_name)
102
91
- MIT
103
92
SPEC
104
93
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
+ stub search_repositories: mock_items
+end
105
def fake_gemspec(extra = "")
106
[FAKE_GEMSPEC, extra].compact.join("\n")
107
0 commit comments