Sha256: c28067a6ea3f14402aac1b4c66500068526d03a098391ef93b41355168db82ea

Contents?: true

Size: 408 Bytes

Versions: 7

Compression:

Stored size: 408 Bytes

Contents

require "spec_helper"

describe "Routes", feature: true do

  let!(:response) { get "/routes" }

  describe "GET /routes" do

    it "responds successfully" do
      expect(response.status).to eq 200
    end

    it "exposes properly formed JSON" do
      expect { JSON.parse(response.to_s) }.not_to raise_error
      expect(JSON.parse(response.to_s)).to all(have_key("options"))
    end

  end # GET /

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.243.2 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.243.1 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.243 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.242.5 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.242.4 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.242.3 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.242.2 spec/rest-ftp-daemon/features/routes_spec.rb