Skip to content

Commit

Permalink
add docs test for error msg.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Jan 26, 2025
1 parent 2ee4e05 commit 204c4ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/docs/assertion_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ class DocsAssertionTest < Minitest::Spec
end
#:pass-pass end

#:pass-fails
it "fails with invalid params but gives you a helpful error" do
skip "run this test when you want an error message"
input = {params: {memo: {}}}

assert_pass Memo::Operation::Create, input
end
#:pass-fails end

it "passes with correct params" do
input = {params: {memo: {title: "Todo", content: "Buy beer"}}}
#:pass-model
Expand Down

0 comments on commit 204c4ea

Please sign in to comment.