Skip to content

Instantly share code, notes, and snippets.

@chaosprinz
chaosprinz / specspec_helper.rb
Created August 28, 2011 09:49 — forked from gavinheavyside/trivial_file_upload_service.rb
Trivial file upload service with simple filename-check using Sinatra and test it with rspec
require './trivial_file_upload_service.rb'
require 'rack/test'
require 'rspec'
set :enviroment, :test
end
@skord
skord / bfile.rb
Created May 23, 2011 18:41
A simple file server and uploader using sinatra
#!/usr/bin/env ruby
require 'rubygems'
require 'sinatra'
require 'haml'
$pwd = ENV['PWD']
if File.exists?(ARGV.last)
if ARGV.last != 'bfile.rb'
@tooky
tooky / Rakefile
Created February 5, 2009 10:42
Sinatra + Cucumber + Webrat
require 'rubygems'
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "--format pretty"
end