Skip to content

Instantly share code, notes, and snippets.

@hassox
Forked from joho/homepage_spec.rb
Created July 7, 2009 02:12
Show Gist options
  • Select an option

  • Save hassox/141843 to your computer and use it in GitHub Desktop.

Select an option

Save hassox/141843 to your computer and use it in GitHub Desktop.
# spec helper
Spec::Runner.configure do |config|
# snip
config.include(Rack::Test::Methods)
end
require File.dirname(__FILE__) + '/../spec_helper'
def app
ActionController::Dispatcher.new
end
describe "the homepage" do
it "shouldn't crap out" do
get '/'
last_response.should be_ok
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment