From d2b332215ed67170d1fa618ffc59f58068bf0a85 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Tue, 1 Apr 2014 04:58:39 +0000 Subject: [PATCH] Remove incorrect mock() usage in specs --- spec/models/track_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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