Last active
June 7, 2019 17:51
-
-
Save ryenski/ff12dfe5b9a8e401e2d01f968039d27b to your computer and use it in GitHub Desktop.
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
assert_difference(Stock.value, +100) do | |
stock.increment | |
end |
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{ stock.increment }.to change(stock, :value).by(100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment