Sha256: e0bc0ea12efb4fbdc80fe632a7bd0c59d8e136cd59b50665db782266d949e106

Contents?: true

Size: 310 Bytes

Versions: 8

Compression:

Stored size: 310 Bytes

Contents

require 'rails_helper'
describe GrapeSwagger, type: :request do

  context :swagger_doc do

    it "should render swagger docs for the api" do 
      get '/api/v1/swagger_doc'
      response.should be_success
      json =  JSON.parse( response.body )
      json['apiVersion'].should == 'v1'
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
introspective_grape-0.2.6 spec/requests/swagger_spec.rb
introspective_grape-0.2.5 spec/requests/swagger_spec.rb
introspective_grape-0.2.4 spec/requests/swagger_spec.rb
introspective_grape-0.2.3 spec/requests/swagger_spec.rb
introspective_grape-0.2.2 spec/requests/swagger_spec.rb
introspective_grape-0.2.0 spec/requests/swagger_spec.rb
introspective_grape-0.1.9 spec/requests/swagger_spec.rb
introspective_grape-0.0.4 spec/requests/swagger_spec.rb