Sha256: 42829e0058750810428f9c7ccd054fffd270a60ecfb2d89cc647cebfbb2ed16b
Contents?: true
Size: 273 Bytes
Versions: 4
Compression:
Stored size: 273 Bytes
Contents
require "spec_helper" describe Rack::API do before do Rack::API.app do get("/", :to => "my_controller#index") end end it "renders action from MyApp" do get "/", :name => "John" last_response.body.should == {"name" => "John"}.to_json end end
Version data entries
4 entries across 4 versions & 1 rubygems