diff --git a/spec/models/track_spec.rb b/spec/models/track_spec.rb index 0a90b98..62e4ecf 100644 --- a/spec/models/track_spec.rb +++ b/spec/models/track_spec.rb @@ -24,7 +24,7 @@ describe Track do describe '#file=' do it 'builds a new related sound with the file' do - sounds = mock('sounds association proxy') + sounds = double 'sounds association proxy' track.stub(:sounds => sounds) sounds.should_receive(:build).with({:file => file}) track.file = file