This is the correct code for testing if clicking a button changed the # of users:
expect { click_button "Create my account" }.not_to change(User, :count)
(correct)
But the curly braces seem so strangely placed above. Why does Capybara use the above syntax and not the below syntax?
expect { click_button("Create my account").not_to change(User, :count) }
(incorrect)