travis-api/spec/middleware_spec.rb
2012-07-27 15:55:57 +02:00

13 lines
274 B
Ruby

require 'spec_helper'
describe Travis::Api::App::Middleware do
class MyMiddleware < Travis::Api::App::Middleware
get('/my_middleware') { 'ok' }
end
it 'sets up middleware automatically' do
get('/my_middleware').should be_ok
body.should == "ok"
end
end