An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
1require_relative "spec_helper.rb"
2
3describe "icon module" do
4 it "should fetch an icon" do
5 get "/icons/example.com/icon.png"
6
7 last_response.status.wont_equal 404
8 end
9
10 it "should fetch an icon for a long domain" do
11 get "/icons/www.internal.corp.example.com/icon.png"
12
13 last_response.status.wont_equal 404
14 end
15end