Sha256: 53db3a8771638ee0f7edff20766a2d310697058a95b4053a36513d7c253d94c2
Contents?: true
Size: 1.15 KB
Versions: 4
Compression:
Stored size: 1.15 KB
Contents
require File.join(File.dirname(__FILE__), "..", "helpers", "spec_helper") describe Videojuicer::Criterion::DateRange do before(:all) do @klass = Videojuicer::Criterion::DateRange 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/date_range" @good_attributes = { :after => DateTime.parse((Time.now - 60*60*24).to_s), :until => DateTime.parse((Time.now + 60*60*24).to_s) } end it_should_behave_like "a RESTFUL resource model" end end
Version data entries
4 entries across 4 versions & 1 rubygems