Sha256: 3c7bde690afc50cf5feb3d072effc4981a53bdbe7dfaa115de5af518d6d3977d

Contents?: true

Size: 580 Bytes

Versions: 11

Compression:

Stored size: 580 Bytes

Contents

require "spec_helper"

describe "Dashboard", feature: true do

  describe "GET #{MOUNT_BOARD}" 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(MOUNT_BOARD).status
        ).to eq 200
      end
    end

    it "has an HTML representation" do
      expect(
        get(MOUNT_BOARD, accept: 'html').status
      ).to eq 200
    end
  end # GET /

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rest-ftp-daemon-0.300.3 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.300.2 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.300.1 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.250.5 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.250.4 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.250.3 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.250.0 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.247.1 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.247.0 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.246.1 spec/rest-ftp-daemon/features/dashboard_spec.rb
rest-ftp-daemon-0.246.0 spec/rest-ftp-daemon/features/dashboard_spec.rb