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