/usr/share/doc/ruby-innate/examples/app/whywiki_erb/spec/wiki.rb is in ruby-innate 2013.02.21-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 | require 'innate'
require 'innate/spec'
require 'yaml/store'
base = File.join(File.dirname(__FILE__), '..')
DB = YAML::Store.new(db_file = "#{base}/spec/wiki.yaml")
require "start"
Innate.config.app.root = base
describe 'Wiki' do
it 'should have index page' do
page = Innate::Mock.get('/')
page.body.should == ''
end
FileUtils.rm_f(db_file)
end
|