Skip to content

Commit

Permalink
Add rubocop autocorrections
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Zuluaga committed Jan 23, 2024
1 parent 25c8109 commit a3b08df
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/bns/use_cases/use_cases.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
module UseCases
def self.notify_birthday_from_notion_to_discord(options)
options = {
fetcher: Fetcher::Birthday::Notion.new(options[:fetch_options]), # !TODO: Use a class for specific configs for fetcher and dispatcher, after everything is working
# !TODO: Use a class for specific configs for fetcher and dispatcher, after everything is working
fetcher: Fetcher::Birthday::Notion.new(options[:fetch_options]),
mapper: Mapper::Birthday::Notion.new,
formatter: Formatter::Birthday::Discord.new,
dispatcher: Dispatcher::Discord.new(options[:dispatch_options])
Expand Down
5 changes: 3 additions & 2 deletions spec/bns/fetcher/birthday/notion_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@
config[:database_id] = "a17e556d16c84272beb4ee73ab709630"
birthday_fetcher = described_class.new(@config)

expect {
expect do
birthday_fetcher.fetch
}.to raise_exception("Could not find database with ID: c17e556d-16c8-4272-beb4-ee73ab709631. Make sure the relevant pages and databases are shared with your integration.")
end.to raise_exception("Could not find database with ID: c17e556d-16c8-4272-beb4-ee73ab709631.
Make sure the relevant pages and databases are shared with your integration.")
end
end

Expand Down
2 changes: 2 additions & 0 deletions spec/bns/formatter/birthday/discord_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe Formatter::Birthday::Discord do
before do
@data = [Domain::Birthday.new("Jane Doe", "2024-01-11"), Domain::Birthday.new("John Doe", "2024-01-18")]
Expand Down
2 changes: 2 additions & 0 deletions spec/bns/mapper/birthday/notion_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe Mapper::Birthday::Notion do
before do
@data = [{ name: "Jane Doe", birth_date: "2024-01-11" }, { name: "Jhon Doe", birth_date: "2024-01-11" }]
Expand Down

0 comments on commit a3b08df

Please sign in to comment.