Created
October 30, 2014 16:56
-
-
Save libitte/2dc4bdf2a8aebeb019a0 to your computer and use it in GitHub Desktop.
expect change を複数データ同時にTESTしたいときに ref: http://qiita.com/libitte@github/items/2831557a1dac2505ab2e
This file contains hidden or 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
| expect{ execute }.to change{ [User.find_by(id: 1).coin, User.find_by(id: 1).skill] }.from([100, 0]).to([0, 1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment