Created
January 23, 2019 07:01
-
-
Save anaumov/ad9c8396341b5b1676a16ab33a6f54d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let!(:user) { create :user } | |
it 'updates the user' do | |
expect_any_instance_of(User).to receive(:update!).with(name: 'Alex') | |
post "/users/#{user.id}", params: { name: 'Alex' } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment