21 lines
377 B
Ruby
21 lines
377 B
Ruby
require "test_helper"
|
|
|
|
class EmailsControllerTest < ActionDispatch::IntegrationTest
|
|
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
|
|
end
|