2020-12-28 13:02:56 +01:00
|
|
|
require "test_helper"
|
|
|
|
|
|
|
|
class EmailsControllerTest < ActionDispatch::IntegrationTest
|
2021-01-30 18:22:00 +01:00
|
|
|
include Devise::Test::IntegrationHelpers
|
|
|
|
|
|
|
|
setup do
|
|
|
|
sign_in users(:alice)
|
|
|
|
@email = emails(:one)
|
|
|
|
end
|
|
|
|
|
|
|
|
test "should get index" do
|
|
|
|
get emails_url
|
|
|
|
assert_response :success
|
|
|
|
end
|
|
|
|
|
|
|
|
test "should show email" do
|
|
|
|
get email_url(@email)
|
|
|
|
assert_response :success
|
|
|
|
end
|
2020-12-28 13:02:56 +01:00
|
|
|
end
|