Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Running flac2mp3 in silent mode.

  • Loading branch information...
commit 6aa13c5c933d45c86b55a6d32c9f7c7c43a7b560 1 parent 3c75f61
@ymendel authored
Showing with 8 additions and 3 deletions.
  1. +1 −1  lib/conversion_observer/consumer.rb
  2. +7 −2 spec/consumer_spec.rb
View
2  lib/conversion_observer/consumer.rb
@@ -10,7 +10,7 @@ def run
end
def convert(file)
- system('flac2mp3', '--delete', file)
+ system('flac2mp3', file, '--delete', '--silent')
end
end
end
View
9 spec/consumer_spec.rb
@@ -67,12 +67,17 @@
end
it 'should call the flac2mp3 command on the file' do
- @consumer.expects(:system).with('flac2mp3', anything, @file)
+ @consumer.expects(:system).with('flac2mp3', @file, anything, anything)
@consumer.convert(@file)
end
it 'should pass the --delete flag to flac2mp3' do
- @consumer.expects(:system).with('flac2mp3', '--delete', anything)
+ @consumer.expects(:system).with('flac2mp3', anything, '--delete', anything)
+ @consumer.convert(@file)
+ end
+
+ it 'should pass the --silent flag to flac2mp3' do
+ @consumer.expects(:system).with('flac2mp3', anything, anything, '--silent')
@consumer.convert(@file)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.