Sha256: 656bc94ceb2e96f5c6b117dc1db64a8b9bc7f6e4b91bcae38d856db2136667f1
Contents?: true
Size: 768 Bytes
Versions: 3
Compression:
Stored size: 768 Bytes
Contents
require 'spec_helper' describe Daengine::ContentServiceProcessor do context "process_orderable" do before do FactoryGirl.create :digital_asset, sami_code: 'AA123' FactoryGirl.create :digital_asset, sami_code: 'AA456' ContentServiceResource.stub(:find_all).and_return( [OpenStruct.new(:samiCode => 'AA123', :orderable => 'true')]) end it 'processes orderable digital assets' do DigitalAsset.all.count.should == 2 DigitalAsset.first.sami_code.should == 'AA123' Daengine::ContentServiceProcessor.process_orderable DigitalAsset.first.sami_code.should == 'AA123' DigitalAsset.first.orderable.should be DigitalAsset.last.orderable.should_not be end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
daengine-0.3.5 | spec/lib/content_service_processor_spec.rb |
daengine-0.3.4 | spec/lib/content_service_processor_spec.rb |
daengine-0.3.3 | spec/lib/content_service_processor_spec.rb |