/usr/lib/ruby/1.8/innate/spec/bacon.rb is in libinnate-ruby1.8 2010.07-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | begin; require 'rubygems'; rescue LoadError; end
require 'bacon'
require 'rack/test'
require File.expand_path('../../', __FILE__) unless defined?(Innate)
Bacon.summary_on_exit
module Innate
# minimal middleware, no exception handling
middleware(:spec){|mw| mw.innate }
# skip starting adapter
options.started = true
options.mode = :spec
end
shared :rack_test do
Innate.setup_dependencies
extend Rack::Test::Methods
def app; Innate.middleware; end
end
shared :mock do
warn 'behaves_like(:mock) is deprecated, use behaves_like(:rack_test) instead'
behaves_like :rack_test
end
|