-
-
Save universal/b9c649c05b1e59ce73db 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
it 'should update rates when subject is accepted' do | |
previous_rate = subject.sale_rate | |
new_rate = BigDecimal.new(1) | |
subject.update_attribute(:sale_rate, new_rate) | |
expect { | |
subject.accept | |
}.to change { | |
subject.sale_rate | |
}.by new_rate - previous_rate | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment