Sha256: 9b1b3a1086118505d4b736c1c163201a28ea2aca7946810607e3719a20559923
Contents?: true
Size: 551 Bytes
Versions: 9
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
9 entries across 9 versions & 1 rubygems