2024-09-22 21:57:05 +02:00
|
|
|
require "test_helper"
|
|
|
|
|
|
2024-11-08 22:05:31 +01:00
|
|
|
class BackofficeControllerTest < ::ControllerTest
|
2024-09-22 22:49:53 +02:00
|
|
|
teardown do
|
|
|
|
|
logout
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
setup do
|
2024-11-08 22:05:31 +01:00
|
|
|
User.create!(email_address: "test@example.com", password: "password")
|
2024-09-22 22:49:53 +02:00
|
|
|
login("test@example.com", "password")
|
|
|
|
|
end
|
|
|
|
|
|
2024-09-22 21:57:05 +02:00
|
|
|
test "should get show" do
|
2024-09-22 22:49:53 +02:00
|
|
|
get backoffice_url
|
2024-09-22 21:57:05 +02:00
|
|
|
assert_response :success
|
|
|
|
|
end
|
|
|
|
|
end
|