Sha256: ebeaa5198326d073f52077a6b926a0f3e66e0d559faa085aa648eb15b8d0bb15
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
require 'spec_helper' describe Librato::Grape::Middleware do class TestAPI < Grape::API use Librato::Grape::Middleware get 'hello' do "Hello World" end end subject { TestAPI } def app subject end it "should send a timing event for each request" do Librato.should_receive(:timing).and_yield get "/hello" last_response.status.should == 200 last_response.body.should == "Hello World" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grape-librato-0.0.1 | spec/grape-librato/middleware_spec.rb |