mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-03 14:24:23 +01:00
17 lines
371 B
Ruby
17 lines
371 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
require 'test_helper'
|
||
|
|
||
|
class ProjectsTest < ActionDispatch::IntegrationTest
|
||
|
def setup
|
||
|
@admin = User.find_by(username: 'admin')
|
||
|
login_as(@admin, scope: :user)
|
||
|
end
|
||
|
|
||
|
test 'download markdown file' do
|
||
|
get "/api/projects/1/markdown"
|
||
|
|
||
|
assert_response :success
|
||
|
assert_equal "text/markdown", response.content_type
|
||
|
end
|
||
|
end
|