Skip to content

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
szechyjs committed Mar 30, 2021
1 parent d4a79c8 commit 6db305d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/github_check_run_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def run
)['id']
@summary = @report_adapter.summary(@report)
@annotations = @report_adapter.annotations(@report)
@conclusion = @report_adapter.conslusion(@report)
@conclusion = @report_adapter.conclusion(@report)
@percent = @report_adapter.lines_covered_percent(@report)

@client.patch(
Expand Down
2 changes: 1 addition & 1 deletion lib/report_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class << self
CONCLUSION_TYPES = { failure: 'failure', success: 'success' }.freeze
ANNOTATION_LEVEL = { notice: 'notice', warning: 'warning', failure: 'failure' }.freeze

def conslusion(report)
def conclusion(report)
lines_covered_percent(report) >= lines_minimum_percent(report).to_f ? CONCLUSION_TYPES[:success] : CONCLUSION_TYPES[:failure]
end

Expand Down
4 changes: 2 additions & 2 deletions spec/report_adapter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

let(:adapter) { ReportAdapter }

it '.conslusion' do
result = adapter.conslusion(report)
it '.conclusion' do
result = adapter.conclusion(report)
expect(result).to eq('success')
end

Expand Down

0 comments on commit 6db305d

Please sign in to comment.