spec/unit/processor/ffmpeg_spec.rb in bulldog-0.1.1 vs spec/unit/processor/ffmpeg_spec.rb in bulldog-0.2.0
- old
+ new
@@ -15,11 +15,11 @@
has_attachment :frame do
path "#{spec.temporary_directory}/frame.:style.:extension"
end
end
- thing = Thing.create(:video => test_video_file('test.mov'))
+ thing = Thing.create(:video => uploaded_file('test.mov'))
@thing = Thing.find(thing.id)
end
def ffmpeg
Bulldog::Processor::Ffmpeg.ffmpeg_path
@@ -185,12 +185,12 @@
argument.should == original_frame_path
end
describe "when the frame attachment already exists" do
before do
- thing = Thing.create(:frame => test_image_file('test.jpg'))
+ thing = Thing.create(:frame => uploaded_file('test.jpg'))
@thing = Thing.find(thing.id)
- @thing.video = test_video_file('test.mov')
+ @thing.video = uploaded_file('test.mov')
@thing.video.stubs(:duration).returns(1)
end
it "should update the original file of the specified attachment" do
lambda do