require "spec_helper"

app_require "fever_api/read_favicons"

describe FeverAPI::ReadFavicons do
  subject { FeverAPI::ReadFavicons.new }

  it "returns a fixed icon list if requested" do
    subject.call("favicons" => nil).should == {
      favicons: [
        {
          id: 0,
          data: "image/gif;base64,R0lGODlhAQABAIAAAObm5gAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="
        }
      ]
    }
  end

  it "returns an empty hash otherwise" do
    subject.call.should == {}
  end
end
