Sha256: df58e3930293c15eea807abdee0e00c72a8dd3e38d37ccfe4239fd123fdab484
Contents?: true
Size: 388 Bytes
Versions: 3
Compression:
Stored size: 388 Bytes
Contents
require 'teststrap' context "Responders Test:" do setup do mock_app { helpers Sinatra::Chicago::Responders get "/json_bait" do status(201) json_response({:foo => "bar"}) end } end context "json response" do setup { get "/json_bait" } asserts_response_status 201 asserts_json_response({:foo => :bar}) end # json response end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chicago-0.3.13 | test/responders_test.rb |
chicago-0.3.12 | test/responders_test.rb |
chicago-0.3.11 | test/responders_test.rb |