Sha256: 18fa8dfbae40c7838a3a612452d4ce4b8bb4d73e0d49f0655c4b714b20a4ce03

Contents?: true

Size: 551 Bytes

Versions: 12

Compression:

Stored size: 551 Bytes

Contents

require "spec_helper"

describe 'Dashboard', feature: true do

  describe "GET /" do
    context 'without a password' do
      it 'is forbidden' do
        expect(HTTP.accept(:json).get("http://localhost:#{RequestHelpers::PORT}").status).to eq 401
      end
    end

    context 'with a password' do
      it 'can be accessed' do
        expect(
            get("/").status
        ).to eq 200
      end
    end

    it "has an HTML representation" do
      expect(
        get("/", accept: 'html').status
      ).to eq 200
    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/dashboard_spec.rb
rest-ftp-daemon-0.242.0 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.241 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.240.2 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.240.1 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.240.0 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.231.1 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.231.0 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.230.3 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.230.2 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.230.1 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.230.0 spec/rest-ftp-daemon/features/dashboard_spec.rb