spec/scissor_spec.rb in scissor-0.2.9 vs spec/scissor_spec.rb in scissor-0.3.0

- old
+ new

@@ -6,19 +6,23 @@ include FileUtils describe Scissor do before do - FFMPEG.logger.level = Logger::WARN - @mp3 = Scissor(fixture('sample.mp3')) mkdir '/tmp/scissor-test' FakeWeb.clean_registry end after do rm_rf '/tmp/scissor-test' + end + + it "should set default logger level to Logger::WARN" do + [Scissor, FFMPEG].each do |mod| + mod.logger.level.should eql(Logger::WARN) + end end it "should create from url" do url = 'http://example.com/sample_mp3' FakeWeb.register_uri(:get, url, :body => fixture('sample.mp3'), :content_type => 'audio/mpeg')