Sha256: bb0b73b94ba46e6fbfe27abdac62993a11fae804a3bcf4eed937d79281922ab4
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
require File.join(File.dirname(__FILE__), "..", "helpers", "spec_helper") describe Videojuicer::Criterion::WeekDay do before(:all) do @klass = Videojuicer::Criterion::WeekDay 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/week_day" @good_attributes = { :day=>5 } @random_attributes = { :day=> (0..6).to_a.sort_by{ rand }.first } end it_should_behave_like "a RESTFUL resource model" end end
Version data entries
4 entries across 4 versions & 1 rubygems