Sha256: fa0d5c5abbc5db07f9ab9c42d0d92f865d3d49aabda6ecd4d4f5ffd76818fcac
Contents?: true
Size: 849 Bytes
Versions: 18
Compression:
Stored size: 849 Bytes
Contents
require "rails_helper" require "serverengine" require "sneakers" require "sneakers/runner" require "external_sneaker" describe TestWorker, "This is manual labor as we can't verify that sneakers is running", :skip do include FileHelper let(:message) do { title: "Cool", body: "Hot", } end let(:logger) { Sapience[described_class] } before do @sneakers_worker = ExternalSneaker.new("rake sneakers:run") @sneakers_worker.start Sneakers.publish( message.to_json, to_queue: described_class::QUEUE_NAME, routing_key: described_class::ROUTING_KEY, ) end after do delete_file("config/sapience.yml") delete_file(described_class::VERIFICATION_FILE) end it "runs properly" do wait(30.seconds).for { File.exist?(described_class::VERIFICATION_FILE) }.to eq(true) end end
Version data entries
18 entries across 18 versions & 1 rubygems