Sha256: 4a46aeca6a03037da9ef5cbaa880e490ea081e8f0af27d9f1523c7f8ee590a6d
Contents?: true
Size: 1020 Bytes
Versions: 2
Compression:
Stored size: 1020 Bytes
Contents
require File.join(File.dirname(__FILE__),'..','spec_helper') describe "SourceJob" do it_behaves_like "SharedRhoconnectHelper", :rhoconnect_data => true do before(:each) do @s = Source.load(@s_fields[:name],@s_params) end it "should perform process_query" do set_state('test_db_storage' => @data) SourceJob.perform('query',@s.id,@s.app_id,@s.user_id,nil) verify_doc_result(@s, {:md => @data, :md_size => @data.size.to_s}) end it "should perform process_cud" do expected = {'backend_id'=>@product1} @product1['link'] = 'abc' @s.push_queue(:create, @c.id, {'1'=>@product1}) SourceJob.perform('cud',@s.id,@s.app_id,@s.user_id,nil) verify_source_queue_data(@s, :create => []) verify_doc_result(@s, {:md => expected, :md_size => expected.size.to_s}) verify_doc_result(@c, {:cd => expected, :cd_size => expected.size.to_s}) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rhoconnect-4.0.0.beta.10 | spec/jobs/source_job_spec.rb |
rhoconnect-4.0.0.beta.12 | spec/jobs/source_job_spec.rb |