Does not unlink the label's tempfile after printing
Cássio Marques
committed Jan 08, 2014
commit 1b9d914102ee730775e3f8e53b328a18b32371dd
Showing 2
changed files with
0 additions
and 7 deletions
zebra/print_job.rb b/lib/zebra/print_job.rb
+0
-1
| @@ | @@ -21,7 +21,6 @@ module Zebra |
| send_to_printer tempfile.path | |
| ensure | |
| tempfile.close | |
| - | tempfile.unlink |
| end | |
| end | |
spec/zebra/print_job_spec.rb
+0
-6
| @@ | @@ -32,11 +32,5 @@ describe Zebra::PrintJob do |
| print_job.should_receive(:`).with("lpr -P Zebra -o raw /foo/bar") | |
| print_job.print label | |
| end | |
| - | |
| - | it "unlinks the file" do |
| - | tempfile.should_receive(:close) |
| - | tempfile.should_receive(:unlink) |
| - | print_job.print label |
| - | end |
| end | |
| end | |