Skip to content

Commit

Permalink
#185 better test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 14, 2018
1 parent 03597c0 commit 998f125
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_diff.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_notification_on_solved_puzzle
)
end

def test_notification_on_final_solved_puzzle
def test_notification_on_one_solved_puzzle
tickets = Tickets.new
before = Nokogiri::XML(
'<puzzles>
Expand All @@ -139,9 +139,9 @@ def test_notification_on_final_solved_puzzle
<issue>101</issue>
<ticket>999</ticket>
<children>
<puzzle alive="false">
<puzzle alive="true">
<id>101-1</id>
<issue>103</issue>
<issue>13</issue>
<ticket>101</ticket>
</puzzle>
</children>
Expand All @@ -157,7 +157,7 @@ def test_notification_on_final_solved_puzzle
)
assert(
tickets.messages[0] ==
'999 all 3 puzzles are solved here: [#100](), [#101](), [#103]().',
'999 the puzzle [#13]() is still not solved; solved: [#100](), [#101]().',
"Text is wrong: #{tickets.messages[0]}"
)
end
Expand Down

0 comments on commit 998f125

Please sign in to comment.