Commit b83ceca01ffee011780565b3fc13cba3fa5a377d
1 parent
7ce5b240
Exists in
colab
and in
4 other branches
Fixes KalibroConfiguration#destroy unit tests
The new memoized implementation for KalibroConfiguration#attributes now calls it twice on destroy. Signed off by: Heitor Reis <marcheing@gmail.com>
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
spec/models/kalibro_configuration_spec.rb
... | ... | @@ -76,8 +76,9 @@ describe KalibroConfiguration, :type => :model do |
76 | 76 | context 'when attributes exist' do |
77 | 77 | let!(:kalibro_configuration_attributes) { FactoryGirl.build(:kalibro_configuration_attributes) } |
78 | 78 | let!(:kalibro_configuration) { kalibro_configuration_attributes.kalibro_configuration } |
79 | + | |
79 | 80 | before do |
80 | - kalibro_configuration.expects(:attributes).returns(kalibro_configuration_attributes) | |
81 | + kalibro_configuration.expects(:attributes).twice.returns(kalibro_configuration_attributes) | |
81 | 82 | end |
82 | 83 | |
83 | 84 | it 'should be destroyed' do | ... | ... |