def test_methodfill out formexpect doclick_button "Save"end.to change(User, :count).by(1)end
Hi folks, I'm using minitest with capybara to write my integration tests. I'm attempting to test the sign up process, where a user goes to a form, inputs their info and clicks sign-up, which will in turn save them to the db. In rspec, I could do something like this: def test_method fill out form expect do click_button "Save" end.to change(User, :count).by(1) end What would be the equivalent of the expect statement in minitest, and more importantly, where can I find this information? I have gone through the docs but can't seem to find documentation that could help me get to here from them Thanks in advance!! -- -- You received this message because you are subscribed to the Google Groups minitest-rails group. To post to this group, send email to minites...@googlegroups.com. To unsubscribe from this group, send email to minitest-rail...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/minitest-rails?hl=en --- You received this message because you are subscribed to the Google Groups "minitest-rails" group. To unsubscribe from this group and stop receiving emails from it, send an email to minitest-rail...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.