mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 17:50:13 +01:00
replace 'None' project by empty string, fix #440
This commit is contained in:
parent
d7944c2464
commit
a29009d3da
8 changed files with 10 additions and 12 deletions
|
|
@ -102,8 +102,8 @@ class TodoCreateParamsHelperTest < ActiveSupport::TestCase
|
|||
assert_equal false, params_helper.project_specified_by_name?
|
||||
end
|
||||
|
||||
def test_project_specified_by_name_is_false_when_project_name_is_none
|
||||
params = ActionController::Parameters.new({ 'project_name' => 'None', 'todo' => {} })
|
||||
def test_project_specified_by_name_is_false_when_project_name_is_blank_string
|
||||
params = ActionController::Parameters.new({ 'project_name' => '', 'todo' => {} })
|
||||
params_helper = Todos::TodoCreateParamsHelper.new(params, users(:admin_user))
|
||||
assert_equal false, params_helper.project_specified_by_name?
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue