Skip to content

Commit

Permalink
Remove test helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuchal committed Nov 23, 2024
1 parent 1fb0ea8 commit f17ca7c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
4 changes: 1 addition & 3 deletions test/lib/event_bus_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
require "test_helper"

class EventBusTest < ActiveSupport::TestCase
include ActiveJob::TestHelper

test ":message_draft_changed event schedules Searchable::ReindexMessageThreadJob" do
test ":message_draft_changed event schedules Searchable::ReindexMessageThreadJob" do
message = messages(:ssd_main_general_draft_one)

message.update(html_visualization: '<html><head>some junk</head><body id="test">text</body>')
Expand Down
2 changes: 0 additions & 2 deletions test/models/box_test.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
require "test_helper"

class BoxTest < ActiveSupport::TestCase
include ActiveJob::TestHelper

test "should not be valid if obo value present in settings when api_connection is a Govbox::ApiConnection without tenant" do
box = boxes(:google_box_with_govbox_api_connection)
assert box.valid?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
require "test_helper"

class Govbox::AuthorizeDeliveryNotificationActionTest < ActiveSupport::TestCase
include ActiveJob::TestHelper

test "schedules Govbox::AuthorizeDeliveryNotificationJob with highest priority" do
message = messages(:solver_main_delivery_notification_two)

Expand Down
2 changes: 0 additions & 2 deletions test/models/message_draft_test.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
require "test_helper"

class MessageDraftTest < ActiveSupport::TestCase
include ActiveJob::TestHelper

test "created! method publishes events on EventBus" do
box = boxes(:ssd_main)
message = MessageDraft.create(
Expand Down

0 comments on commit f17ca7c

Please sign in to comment.