Sha256: b55e1a58cc7533f3be28ea28d665bcce01305c6c980c14de637d7a53442e2629
Contents?: true
Size: 849 Bytes
Versions: 7
Compression:
Stored size: 849 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 expect( @asset.name ).to eq name end it "should store the data" do expect( @asset.data ).to eq data end it "should store the type" do expect( @asset.asset_type ).to eq type end it "should store the job_id" do expect( @asset.job ).to eq job_id end end describe "#type" do it "should default to screenshot" do expect( SauceWhisk::Asset.new.asset_type ).to eq :screenshot end end end
Version data entries
7 entries across 7 versions & 1 rubygems