From 589ee7516869eeaa1e1432636aef79be8dc17835 Mon Sep 17 00:00:00 2001 From: ericmoon Date: Thu, 2 Aug 2018 11:52:01 -0700 Subject: [PATCH] another assert_nil hack --- test/models/project_from_todo_test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/models/project_from_todo_test.rb b/test/models/project_from_todo_test.rb index ae7a7409..269d5e66 100644 --- a/test/models/project_from_todo_test.rb +++ b/test/models/project_from_todo_test.rb @@ -8,7 +8,11 @@ class ProjectFromTodoTest < ActiveSupport::TestCase todo = todos(:upgrade_rails) project = ProjectFromTodo.new(todo).create assert_equal project.name, todo.description - assert_equal project.description, todo.notes + if project.desription.nil? + assert_nil todo.notes + else + assert_equal project.description, todo.notes + end if project.default_context.nil? assert_nil todo.context else