Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/views/tasks/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
<% end %>
</div>

<div class="my-3">
<p class="h5 fw-bold mb-2">状態</p>
<%= @task.state.name %>
</div>

<div class="my-3">
<p class="h5 fw-bold mb-2">説明</p>
<div class="markdown-body">
Expand Down
6 changes: 6 additions & 0 deletions test/models/task_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ def setup
assert_not Task.new(task).save
end

test "should not create task without task_state_id" do
task = @task_template.clone
task[:task_state_id] = nil
assert_not Task.new(task).save
end

test "should delete task" do
task = @task_template.clone
task = Task.create(task)
Expand Down