Sha256: 144d89c9677aa2bcf41848d1f0d06d8639235da6c805f3933bcedbe60e81748a

Contents?: true

Size: 408 Bytes

Versions: 12

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

12 entries across 12 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.242.1 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.242.0 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.241 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.240.2 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.240.1 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.240.0 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.231.1 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.231.0 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.230.3 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.230.2 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.230.1 spec/rest-ftp-daemon/features/routes_spec.rb
rest-ftp-daemon-0.230.0 spec/rest-ftp-daemon/features/routes_spec.rb