style
This commit is contained in:
parent
074b467251
commit
7b8c667447
|
@ -318,7 +318,7 @@ Make sure, that you push tags to remote repo via 'git push --tags'"
|
|||
# @param [Integer] attempt the attempt number
|
||||
# @return [Integer] Exponential backoff seconds
|
||||
def exp_backoff(attempt)
|
||||
(2 ** attempt - 1) / 2
|
||||
(2**attempt - 1) / 2
|
||||
end
|
||||
|
||||
# Print specified line on the same string
|
||||
|
|
|
@ -15,7 +15,7 @@ describe GitHubChangelogGenerator::OctoFetcher do
|
|||
describe "#check_github_response" do
|
||||
context "when returns successfully" do
|
||||
it "returns block value" do
|
||||
expect(fetcher.send(:check_github_response) { 1+1 }).to eq(2)
|
||||
expect(fetcher.send(:check_github_response) { 1 + 1 }).to eq(2)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -35,7 +35,6 @@ describe GitHubChangelogGenerator::OctoFetcher do
|
|||
fetcher.send(:check_github_response) { raise(Octokit::Forbidden) }
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
describe "#fetch_github_token" do
|
||||
|
|
Loading…
Reference in New Issue
Block a user