Sha256: d7935293cc0bbd3a64ab339b8fc3326bfe46b93f8a8bf33bbdcaec7f9ce5ae1b
Contents?: true
Size: 665 Bytes
Versions: 2
Compression:
Stored size: 665 Bytes
Contents
require 'spec_helper' describe Enceladus::Cast do describe "#profile_urls" do subject { cast.profile_urls } let(:cast) { Enceladus::Cast.new } before do cast.profile_path = "/aylar_lie.jpeg" stub_request(:get, /api.themoviedb.org\/3\/configuration/).to_return(status: 200, body: ConfigurationResponse.new.to_json) Enceladus::Configuration::Image.instance.setup! end it "should return profile url" do is_expected.to eq(["http://test.com/w45#{cast.profile_path}", "http://test.com/w185#{cast.profile_path}", "http://test.com/h632#{cast.profile_path}", "http://test.com/original#{cast.profile_path}"]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enceladus-0.0.3 | spec/enceladus/models/cast_spec.rb |
enceladus-0.0.2 | spec/enceladus/models/cast_spec.rb |