require 'spec_helper' RSpec.describe Pluginscan::IssuesPrinterFactory do describe ".create_printer" do it 'raises an error if it gets an unknown format' do expect{ Pluginscan::IssuesPrinterFactory.create_printer(:foo) }.to raise_error(Pluginscan::UnknownIssuesFormat) end end end