Sha256: 59e2c9d2f7d35ecd794eb3d1dbade026bd0b9340d394cd9df5b79c4cf33656b9
Contents?: true
Size: 794 Bytes
Versions: 2
Compression:
Stored size: 794 Bytes
Contents
require "spec_helper" describe Lablr do describe "generate_labels" do before(:each) do end after(:each) do # cleanup end describe "generate_labels" do describe "to_file" do before(:each) do end after(:each) do #File.delete(@file_path) if File.exists?(file) end it "should create a pdf file" do @file_path = File.expand_path("../../tmp/label.pdf", __FILE__) Lablr.generate_labels(:template => :avery_5163, :format => :pdf, :content => "Test Label!", :to_file => @file_path) File.exists?(@file_path).should == true File.delete(@file_path) if File.exists?(@file_path) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lablr-0.2.0 | spec/lib/lablr_spec.rb |
lablr-0.1.2 | spec/lib/lablr_spec.rb |