Sha256: dd4b8b0170f1e6abdda075120c01603d6096c27d5c185e18c31c008db789a7c6

Contents?: true

Size: 582 Bytes

Versions: 1

Compression:

Stored size: 582 Bytes

Contents

require "spec_helper"

describe Foomatic::DB do
  subject(:db) do
    foomatic = Foomatic::DB.open(File.expand_path("../db", __FILE__))
  end

  describe "#printers" do
    it "should return list of printers" do
      db.printers.should be_an_instance_of(Array)
      db.printers[0].should be_an_instance_of(Foomatic::Printer)
    end

    it "should include 'HP LaserJet 1200' printer" do
      printer = db.printers[0]
      printer.make.should eq "HP"
      printer.model.should eq "LaserJet 1200"
      printer.should be_laser
      printer.should_not be_color
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-foomatic-0.0.1 spec/foomatic_spec.rb