Sha256: 746ffeabfcb9acdfa9e3e6caf6cf65c7a673c00cfffd6edfdd875df6df36a353
Contents?: true
Size: 1.13 KB
Versions: 5
Compression:
Stored size: 1.13 KB
Contents
require File.join(File.dirname(__FILE__), "helpers", "spec_helper") describe Videojuicer::Campaign do before(:all) do @klass = Videojuicer::Campaign 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 string_mash = (("A".."z").to_a + ("a".."z").to_a) @singular_name = "campaign" @plural_name = "campaigns" @good_attributes = { :name => (0..rand(75)).map{ string_mash[rand(string_mash.size - 1)] }.join } end it_should_behave_like "a RESTFUL resource model" end end
Version data entries
5 entries across 5 versions & 1 rubygems