spec/sprockets-helpers_spec.rb in sprockets-helpers-0.5.0 vs spec/sprockets-helpers_spec.rb in sprockets-helpers-0.6.0
- old
+ new
@@ -296,6 +296,30 @@
it 'prepends the images dir' do
context.image_path('logo.jpg').should == '/images/logo.jpg'
end
end
end
+
+ describe '#font_path' do
+ context 'with regular files' do
+ it 'prepends the fonts dir' do
+ context.font_path('font.ttf').should == '/fonts/font.ttf'
+ end
+ end
+ end
+
+ describe '#video_path' do
+ context 'with regular files' do
+ it 'prepends the videos dir' do
+ context.video_path('video.mp4').should == '/videos/video.mp4'
+ end
+ end
+ end
+
+ describe '#audio_path' do
+ context 'with regular files' do
+ it 'prepends the audios dir' do
+ context.audio_path('audio.mp3').should == '/audios/audio.mp3'
+ end
+ end
+ end
end