Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
suprjinx committed Sep 19, 2024
1 parent 8fbc730 commit 1e6dfe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/interactors/audit_logging_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def call
end)
rslt = SuccessAction.call(identity: @identity, request: @cr)
assert rslt.success?
assert_match %Q("action":"SuccessAction","result":"success","error":null,"subject":"[email protected]","cert_common_name":"example.com"), @log.readlines.last
assert_match %Q("action":"SuccessAction","result":"success","subject":"[email protected]","cert_common_name":"example.com"), @log.readlines.last
end

test ".call will be logged as failure" do
Expand All @@ -38,6 +38,6 @@ def call
end)
rslt = FailAction.call(identity: @identity, request: @cr)
assert_not rslt.success?
assert_match %Q("action":"FailAction","result":"failure","error":null,"subject":"[email protected]","cert_common_name":"example.com"), @log.readlines.last
assert_match %Q("action":"FailAction","result":"failure","subject":"[email protected]","cert_common_name":"example.com"), @log.readlines.last
end
end

0 comments on commit 1e6dfe9

Please sign in to comment.