require 'test_helper'

class TasksTest < ActiveSupport::TestCase
  # test "the truth" do
  #   assert true
  # end
end

require 'test_helper'

class TasksTest < ActiveSupport::TestCase

  test "should not create a task without name" do
      task = Task.create

      assert_not task.save
  end

  test "should create a task with a true status" do
    task = Task.create name: 'my test task'
    task.save

    assert task.status

    task.destroy
  end

end

Add unit tests to task model.
Add unit tests to task model.
