Skip to content

Instantly share code, notes, and snippets.

@libitte
Created October 30, 2014 16:56
Show Gist options
  • Select an option

  • Save libitte/2dc4bdf2a8aebeb019a0 to your computer and use it in GitHub Desktop.

Select an option

Save libitte/2dc4bdf2a8aebeb019a0 to your computer and use it in GitHub Desktop.
expect change を複数データ同時にTESTしたいときに ref: http://qiita.com/libitte@github/items/2831557a1dac2505ab2e
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