Removes first comment body from notes tests
Improves notes unit tests by replacing checking with first comment's body with checking with default / user-specified descriptions. Also, removes test_author unit test, adds setting note's author when checking notification's success and sets first comment type to "opened" in tests with tooltips which require first comment to be "opened".
This commit is contained in:
parent
047e972b2d
commit
cc6bfb2c7c
6 changed files with 31 additions and 21 deletions
|
@ -338,7 +338,7 @@ module Api
|
|||
second_user = create(:user)
|
||||
third_user = create(:user)
|
||||
|
||||
note_with_comments_by_users = create(:note) do |note|
|
||||
note_with_comments_by_users = create(:note, :author => first_user) do |note|
|
||||
create(:note_comment, :note => note, :author => first_user)
|
||||
create(:note_comment, :note => note, :author => second_user)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue