require_relative '../../test_helper'

class AuthTest < Geminabox::TestCase
  url "http://foo:bar@localhost/"

  app do
    use Rack::Auth::Basic do |username, password|
      username == "foo" and password == "bar"
    end

    run Geminabox::Server
  end

  should_push_gem
  should_fetch_gem
end
