Skip to content

Commit

Permalink
turn off maintenance mode after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vertism committed Dec 16, 2024
1 parent c6f1be4 commit ec13d62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/controllers/application_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
sign_in user
end

after do
ENV["MAINTENANCE_MODE"] = "OFF"
end

context "when maintenance mode is off" do
it "redirects requests for the maintenance page to the homepage" do
ENV["MAINTENANCE_MODE"] = "OFF"
get :maintenance_mode
expect(response).to redirect_to("/")
end
Expand Down

0 comments on commit ec13d62

Please sign in to comment.