Skip to content

Commit

Permalink
better formatting for some tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Jan 15, 2025
1 parent 49e55c3 commit 446b6ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/docs/assertion_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DocsAssertionTest < Minitest::Spec
#:pass-model-manual
assert_equal result[:model].title, "Todo"
assert_equal result[:model].persisted?, true
assert_equal result[:model].id > 0
assert result[:model].id > 0
#:pass-model-manual end
=end
end
Expand Down
5 changes: 3 additions & 2 deletions test/docs/suite_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ class MemoOperationTest < Minitest::Spec # test/memo/operation_test.rb

#:assert-pass
it "accepts {tag_list} and converts it to an array" do
assert_pass({tag_list: "fridge,todo"},
{tag_list: ["fridge", "todo"]}) # what we're expecting on the model.
assert_pass(
{tag_list: "fridge,todo"}, # input + default_ctx
{tag_list: ["fridge", "todo"]}) # what's expected on the model.
end
#:assert-pass end
#~zoom end
Expand Down

0 comments on commit 446b6ca

Please sign in to comment.