Update to rspec 3.2

This commit is contained in:
Thibault Jouan
2015-04-29 14:55:03 +00:00
parent 96246f87bf
commit 282eb2ddee
7 changed files with 40 additions and 38 deletions

View File

@@ -1,7 +1,7 @@
def build_sound_file
file = File.new("#{Rails.root}/spec/fixtures/test.mp3")
file.stub(content_type: 'audio/mpeg')
file
File.new("#{Rails.root}/spec/fixtures/test.mp3").tap do |o|
o.define_singleton_method(:content_type) { 'audio/mpeg' }
end
end
FactoryGirl.define do