Sha256: 042e9ec6d9a915c8596e57699a32866b2e96a40ec824c8c19f5f106ae455e449

Contents?: true

Size: 675 Bytes

Versions: 7

Compression:

Stored size: 675 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:85\/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"
    Panda.configure do |c|
      c.heroku = my_heroku_url
    end
  end
  
  it "should get all videos" do
    videos_json = "[]"
    stub_http_request(:get, /api.example.com:85\/v2\/videos.json/).to_return(:body => videos_json)
    
    Panda::Video.all.should be_empty
  end
  
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
panda-1.3.0 spec/heroku_spec.rb
panda-1.2.2 spec/heroku_spec.rb
panda-1.2.1 spec/heroku_spec.rb
panda-1.2.0 spec/heroku_spec.rb
panda-1.1.0 spec/heroku_spec.rb
faraday-panda-1.1.0 spec/heroku_spec.rb
panda-1.0.0 spec/heroku_spec.rb