mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-12 23:09:03 +01:00
22 lines
495 B
Ruby
22 lines
495 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'test_helper'
|
|
|
|
class ProjectToMarkdownTest < ActiveSupport::TestCase
|
|
test "ProjectToMarkdown is working" do
|
|
project = projects(:project_1)
|
|
service = ProjectToMarkdown.new(project)
|
|
|
|
markdown_str = nil
|
|
|
|
assert_nothing_raised do
|
|
markdown_str = service.call
|
|
end
|
|
|
|
assert_includes markdown_str, project.name
|
|
project.project_steps.each do |project_step|
|
|
assert_includes markdown_str, project_step.title
|
|
end
|
|
end
|
|
end
|