Sha256: d79b0402683c4eab365a33f8c8d3d5e03902a5e10d821494e3ae604891b899e6
Contents?: true
Size: 999 Bytes
Versions: 1
Compression:
Stored size: 999 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "helpers", "spec_helper") describe Videojuicer::Asset::All do before :all do configure_test_settings 5.of do Videojuicer::Asset::Video.gen :friendly_name => "test" end @klass = Videojuicer::Asset::All end describe "instantiation" do it_should_behave_like "a configurable" end describe "listing assets of all types" do it "should list assets" do @assets = @klass.all @assets.should_not == nil @assets.class.should == Videojuicer::Resource::Collection end it "should paginate" do @assets = @klass.all :page => 1, :limit => 5 @assets.length.should == 5 end end describe "searching" do it "should search" do @assets = @klass.all({"friendly_name.like" => "test"}) @assets.should_not == nil @assets.class.should == Videojuicer::Resource::Collection @assets.first.friendly_name.should =~ /test/ end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vj-sdk-0.7.0 | spec/assets/all.rb |