Skip to content

Instantly share code, notes, and snippets.

@johnivanoff
Created November 25, 2012 21:52
Show Gist options
  • Select an option

  • Save johnivanoff/4145550 to your computer and use it in GitHub Desktop.

Select an option

Save johnivanoff/4145550 to your computer and use it in GitHub Desktop.
require '../main'
require 'test/unit'
require 'rack/test'
ENV['RACK_ENV'] = 'test'
class FeedAggregatorTest < Test::Unit::TestCase
include Rack::Test::Methods
def app
Sinatra::Application
end
def test_it_says_feed_aggregator
get '/'
assert last_response.ok?
assert_equal 'Feed Aggregator', last_response.body
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment