Last active
January 23, 2019 06:50
-
-
Save anaumov/b79811a1d813a5098847a3661d33edd1 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(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