Created
October 30, 2008 04:31
-
-
Save sr/20915 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'linahi' # this is just my app, which seems to work ok | |
require 'sinatra/test/spec' | |
context 'Linahi' do | |
specify 'should list files when asked' do | |
get_it '/' | |
puts body | |
end | |
specify 'should send files when asked' do | |
get_it '/?r=file:///home/data/images/avatars/batman.png' | |
puts body | |
should.be.ok | |
body.should.equal 'My Default Page!' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment