Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 544 Bytes
require 'rubygems'
require File.join(File.dirname(__FILE__), '..', 'lib', 'printable')
require 'spec/autorun'
require 'fixtures/example'
def file_fixture(filename)
open(File.join(File.dirname(__FILE__), 'fixtures', "#{filename.to_s}")).read
end
Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}
Spec::Runner.configure do |config|
end
def mock_printer(printee)
printer = Printable::Printer.new(printee, 'spec/fixtures/example.print')
printer.stub!(:run).and_return(true)
printer
end