Sha256: db54bf9353aeb70bc2e48d2d98c606dee5966d92617e5ef609ac927db6c7c21e

Contents?: true

Size: 365 Bytes

Versions: 14

Compression:

Stored size: 365 Bytes

Contents

# test.rb
require_relative 'test_helper'

class ApiTest < MiniTest::Test

  include Rack::Test::Methods

  def app
    Sinatra::Application
  end

  def test_base
    get '/', :key => "WHATEVER"
    assert last_response.ok?
    assert_equal "ahoy!", last_response.body
  end

  def test_fake_route
    get '/whatever.json'
    assert !last_response.ok?
  end


end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
yankee-0.1.7 test/test.rb
yankee-0.1.6 test/test.rb
yankee-0.1.5 test/test.rb
yankee-0.1.3 test/test.rb
yankee-0.1.2 test/test.rb
yankee-0.1.1 test/test.rb
yankee-0.1.0 test/test.rb
yankee-0.0.9 test/test.rb
yankee-0.0.8 test/test.rb
yankee-0.0.7 test/test.rb
yankee-0.0.6 test/test.rb
yankee-0.0.5 test/test.rb
yankee-0.0.3 test/test.rb
yankee-0.0.2 test/test.rb