Skip to content

Commit

Permalink
WIP:
Browse files Browse the repository at this point in the history
-  test that a method in my ResultsController is called based on instance variable
  • Loading branch information
MazOneTwoOne committed Oct 14, 2024
1 parent ed05935 commit 5088d47
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/controllers/results_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require "rails_helper"

RSpec.describe ResultsController, type: :controller do
describe "POST #early_result_redirect" do
it "tracks completed use journeys when this redirect happens" do
allow(controller).to receive(:early_result_redirect_happened).and_return(true)

expect(subject).to receive(:track_completed_journey)
end
end
end

0 comments on commit 5088d47

Please sign in to comment.