Sha256: 13b71882b78839c1779ba4e8fae9de1471a9510e538ed8ae1f7641822b82b18d
Contents?: true
Size: 942 Bytes
Versions: 6
Compression:
Stored size: 942 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Panda::Video do before(:each) do cloud_json = "{\"s3_videos_bucket\":\"my_bucket\",\"id\":\"my_cloud_id\"}" stub_http_request(:get, /api.example.com:443\/v2\/clouds\/my_cloud_id.json/). to_return(:body => cloud_json) my_heroku_url = "http://access_key:secret_key@api.example.com:85/my_cloud_id" ENV['PANDASTREAM_URL']= my_heroku_url end it "should get all videos" do Panda.configure_heroku videos_json = "[]" stub_http_request(:get, /api.example.com:443\/v2\/videos.json/).to_return(:body => videos_json) Panda::Video.all.should be_empty end it "should get all videos" do Panda.configure ENV['PANDASTREAM_URL'] videos_json = "[]" stub_http_request(:get, /api.example.com:443\/v2\/videos.json/).to_return(:body => videos_json) Panda::Video.all.should be_empty end end
Version data entries
6 entries across 6 versions & 1 rubygems