Skip to content

Instantly share code, notes, and snippets.

@biot023
Created February 3, 2011 23:12
Show Gist options
  • Save biot023/810431 to your computer and use it in GitHub Desktop.
Save biot023/810431 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'bundler/setup'
require 'sinatra'
require 'rspec'
require 'rack/test'
# set test environment
Sinatra::Base.set :environment, :test
Sinatra::Base.set :run, false
Sinatra::Base.set :raise_errors, true
Sinatra::Base.set :logging, false
ENV["RACK_ENV"] = "test"
require_relative "../../lib/highscoregasm"
describe "Highscoregasm" do
include Rack::Test::Methods
def app
Highscoregasm
end
describe "/my_test_page" do
get "/my_test_page"
last_response.status.should == 200
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment