Sha256: ba3f1a1e84b47ddcc64d1d37fd6cfe0aadf95be5d9cf5baba59db15e93312815

Contents?: true

Size: 605 Bytes

Versions: 11

Compression:

Stored size: 605 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '../../spec_helper')

describe Cloudist::Job do
  before(:each) do
    @payload = Cloudist::Payload.new({:bread => 'white'})
  end
  
  it "should be constructable with payload" do
    job = Cloudist::Job.new(@payload)
    job.payload.should == @payload
  end
  
  it "should be constructable with payload and return ID" do
    job = Cloudist::Job.new(@payload)
    job.id.should == @payload.id
  end
  
  it "should be constructable with payload and return data" do
    job = Cloudist::Job.new(@payload)
    job.data.should == @payload.body
  end
  
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cloudist-0.4.4 spec/cloudist/job_spec.rb
cloudist-0.4.3 spec/cloudist/job_spec.rb
cloudist-0.4.2 spec/cloudist/job_spec.rb
cloudist-0.4.1 spec/cloudist/job_spec.rb
cloudist-0.2.1 spec/cloudist/job_spec.rb
cloudist-0.2.0 spec/cloudist/job_spec.rb
cloudist-0.1.2 spec/cloudist/job_spec.rb
cloudist-0.1.1 spec/cloudist/job_spec.rb
cloudist-0.1.0 spec/cloudist/job_spec.rb
cloudist-0.0.3 spec/cloudist/job_spec.rb
cloudist-0.0.2 spec/cloudist/job_spec.rb