Sha256: c88155fe7dc51c121c8a353a39c74b823a6a12c3a57127cd0e9bbc26d9ecb05a
Contents?: true
Size: 543 Bytes
Versions: 1
Compression:
Stored size: 543 Bytes
Contents
require 'spec_helper' describe Enceladus::GuestAccount do let(:guest_account_response) { build(:guest_account_response) } before do stub_request(:get, "https://api.themoviedb.org/3/authentication/guest_session/new?api_key=token"). to_return(status: 200, body: guest_account_response.to_json) end describe "#initialize" do subject(:account) { Enceladus::GuestAccount.new } it "should set account guest_session_id" do expect(account.session_id).to eq guest_account_response.guest_session_id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enceladus-0.0.4 | spec/enceladus/models/guest_account_spec.rb |