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

Version Path
rest-ftp-daemon-1.1.1 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.1.0 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.15 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.14 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.13 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.12 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.11 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.10 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.9 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.8 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.7 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.6 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.5 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.4 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.3 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.2 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-1.0.1 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-0.502.2 spec/rest-ftp-daemon/features/swagger_spec.rb
rest-ftp-daemon-0.502.1 spec/rest-ftp-daemon/features/swagger_spec.rb