Sha256: 7ba482d52d76ab8d4502c36fa42ffd7c3c3db99863b6c5c50688f9476983b6d1

Contents?: true

Size: 1.41 KB

Versions: 3

Compression:

Stored size: 1.41 KB

Contents

require File.join(File.dirname(__FILE__), "helpers", "spec_helper")

describe Videojuicer::Asset::Video do
  
  before(:all) do
    @klass = Videojuicer::Asset::Video
    configure_test_settings
    Videojuicer.enter_scope :seed_name => fixtures.seed.name, 
                            :consumer_key=>fixtures["write-master"].consumer.consumer_key,
                            :consumer_secret=>fixtures["write-master"].consumer.consumer_secret,
                            :token=>fixtures["write-master"].authorized_token.oauth_token,
                            :token_secret=>fixtures["write-master"].authorized_token.oauth_token_secret
  end
  
  after(:all) do
    Videojuicer.exit_scope
  end
  
  describe "instantiation" do
    it_should_behave_like "a configurable"
  end
  
  describe "general interface:" do
    before(:all) do
      @singular_name = "asset"
      @plural_name = "assets/video"
      @good_attributes = {
        :user_id        => rand(100) + 1,
        :licensed_at    => Time.now,
        :licensed_by    => "foo, bar",
        :licensed_under => "CC BY:NC:SA",
        :published_at   => Time.now,      
        :duration       => 180000, 
        :width          => 640,
        :height         => 480,
        :bit_rate       => 262144,
        :file => File.open(File.join(File.dirname(__FILE__), "files", "video.mov"))
      }
    end
    
    it_should_behave_like "a RESTFUL resource model"
  end
  
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
videojuicer-vj-sdk-0.1.0 spec/video_spec.rb
videojuicer-vj-sdk-0.1.1 spec/video_spec.rb
videojuicer-vj-sdk-0.1.3 spec/video_spec.rb