Sha256: e5587706ae269eda831154ddde57f0a3d1ac4d3a3017ad801c5087a693afbff4
Contents?: true
Size: 819 Bytes
Versions: 11
Compression:
Stored size: 819 Bytes
Contents
require "spec_helper" describe SauceWhisk::Asset do describe "#initialize" do let(:data) {"DEDEDEDEDED"} let(:name) {"video01.mpg"} let(:job_id) {"c4revevegegerg"} let(:type) {:video} before :each do params = {:data => data, :name => name, :type => type, :job_id => job_id} @asset = SauceWhisk::Asset.new params end it "should store the name" do @asset.name.should eq name end it "should store the data" do @asset.data.should eq data end it "should store the type" do @asset.asset_type.should eq type end it "should store the job_id" do @asset.job.should eq job_id end end describe "#type" do it "should default to screenshot" do SauceWhisk::Asset.new.asset_type.should eq :screenshot end end end
Version data entries
11 entries across 11 versions & 1 rubygems