Skip to content

Commit

Permalink
Increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeGuzmanSierra committed Aug 8, 2024
1 parent 1361241 commit 5106d6c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 20 deletions.
4 changes: 0 additions & 4 deletions lib/bas/utils/notion/types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ module Notion
# filter or create.
#
module Types
def multi_select(name)
{ "multi_select" => [{ "name" => name }] }
end

def relation(id)
{ relation: [{ id: }] }
end
Expand Down
2 changes: 1 addition & 1 deletion spec/bas/bot/create_work_item_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
}
end

let(:issue_request) { { "issue" => issue } }
let(:issue_request) { { "issue" => issue, "work_item_type" => "activity", "type_id": "id" } }

let(:error_response) { { "object" => "error", "status" => 404, "message" => "not found" } }

Expand Down
14 changes: 0 additions & 14 deletions spec/bas/bot/fetch_github_issues_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,20 +115,6 @@
]}"
end

let(:formatted_issues) do
{
id: "12345",
assignees: [],
html_url: "https://github.com/repo/issues",
title: "Issue",
body: "simple description",
labels: [],
state: "open",
created_at: "2024-07-24 20:13:18 UTC",
updated_at: "2024-07-24 20:13:18 UTC"
}
end

let(:error_response) { { "object" => "error", "status" => 404, "message" => "not found" } }

let(:pg_conn) { instance_double(PG::Connection) }
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)

SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
# SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
SimpleCov.start

VCR.configure do |config|
Expand Down

0 comments on commit 5106d6c

Please sign in to comment.