Sha256: d721a80c4b20aaee2bf2f919b9e67c66d818487fa298bf3021bbe8b0fe1bf8c8
Contents?: true
Size: 554 Bytes
Versions: 19
Compression:
Stored size: 554 Bytes
Contents
require "spec_helper" describe "Swagger", feature: true do describe "GET #{MOUNT_SWAGGER_JSON}" do let!(:response) { get MOUNT_SWAGGER_JSON } it "responds successfully" do expect(response.status).to eq 200 end it "exposes a JSON hash" do expect(JSON.parse(response.body)).to be_an_instance_of(Hash) end # it "writes the API doc" do # json_file = File.expand_path "../../swagger.json" # puts "YEAH: #{json_file}" # File.write(json_file, response.body) # end end # GET /swagger.json end
Version data entries
19 entries across 19 versions & 1 rubygems