Skip to content

Commit

Permalink
Hide the glue below tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlyobvious committed Nov 23, 2023
1 parent 20ae21a commit 3808041
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions shared/lib/project_management/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ module ProjectManagement
module Test
def self.with(handler:, event_store:)
Module.new do
attr_reader :event_store, :handler

define_method :before_setup do
@event_store = event_store.call
@handler = handler.call(@event_store)
end

def test_impossible_initial_transitions
assert_error { start_issue_progress }
assert_error { stop_issue_progress }
Expand Down Expand Up @@ -262,6 +255,13 @@ def test_closed_from_resolved_after_progress_started

private

attr_reader :event_store, :handler

define_method :before_setup do
@event_store = event_store.call
@handler = handler.call(@event_store)
end

def issue_id = "c97a6121-f933-4609-9e96-e77dc2f67a16"

def issue_data = { issue_id: issue_id }
Expand Down

0 comments on commit 3808041

Please sign in to comment.