Sha256: 763c5c33af5aa1ff6efb062db50fc752d307781c866f6efcddb62250f4590e9f

Contents?: true

Size: 1.31 KB

Versions: 5

Compression:

Stored size: 1.31 KB

Contents

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

describe Videojuicer::Asset::Text do
  
  before(:all) do
    @klass = Videojuicer::Asset::Text
    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/text"
      @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, 
        :file => File.open(File.join(File.dirname(__FILE__), "files", "text.txt"))
      }
    end
    
    it_should_behave_like "a RESTFUL resource model"
  end
  
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
videojuicer-vj-sdk-0.1.0 spec/text_spec.rb
videojuicer-vj-sdk-0.1.1 spec/text_spec.rb
videojuicer-vj-sdk-0.1.3 spec/text_spec.rb
videojuicer-vj-sdk-0.1.4 spec/text_spec.rb
videojuicer-vj-sdk-0.1.5 spec/text_spec.rb