Sha256: 83784bb4fc004e5b14831a9c788a0b6fd040b0f18f65cce65d26b0ee67c6c843

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

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

describe Videojuicer::Criterion::Time do
  
  before(:all) do
    @klass = Videojuicer::Criterion::Time
    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 = "criterion"
      @plural_name = "criteria/time"
      @good_attributes = {
        :after => (Time.now - 3600).strftime("%H%M"),
        :until => (Time.now + 3600).strftime("%H%M")
      }
    end
    
    it_should_behave_like "a RESTFUL resource model"
  end
  
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
videojuicer-vj-sdk-0.1.1 spec/criteria/time_spec.rb
videojuicer-vj-sdk-0.1.3 spec/criteria/time_spec.rb
videojuicer-vj-sdk-0.1.4 spec/criteria/time_spec.rb
videojuicer-vj-sdk-0.1.5 spec/criteria/time_spec.rb