Sha256: b958d6f9cee5ce3a3b25620b2a87af854af258cd72f1b4b555bff0d67cac8d02

Contents?: true

Size: 200 Bytes

Versions: 10

Compression:

Stored size: 200 Bytes

Contents

require "spec_helper"

describe Rack::API do
  before do
    @app = MyApp
  end

  it "renders action from MyApp" do
    get "/v1"
    last_response.body.should == {"myapp" => true}.to_json
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rack-api-1.1.0 spec/rack-api/inheritance_spec.rb
rack-api-1.0.2 spec/rack-api/inheritance_spec.rb
rack-api-1.0.1 spec/rack-api/inheritance_spec.rb
rack-api-1.0.0 spec/rack-api/inheritance_spec.rb
rack-api-0.3.1 spec/rack-api/inheritance_spec.rb
rack-api-0.3.0 spec/rack-api/inheritance_spec.rb
rack-api-0.2.2 spec/rack-api/inheritance_spec.rb
rack-api-0.2.1 spec/rack-api/inheritance_spec.rb
rack-api-0.2.0 spec/rack-api/inheritance_spec.rb
rack-api-0.1.2 spec/rack-api/inheritance_spec.rb