Sha256: 0bdb75bfb399f394ec28b636864c38339e7e49c648af0f53a29179c879a689f5
Contents?: true
Size: 1 KB
Versions: 6
Compression:
Stored size: 1 KB
Contents
require 'spec_helper' describe Vx::Worker::Configuration do let(:config) { Vx::Worker.config } subject { config } its(:run) { should eq :docker } its(:docker) { should be } its(:timeout) { should eq 1800 } its(:amqp_url) { should be_nil } its(:connector_options) { should eq config.docker } its(:connector_remote_dir) { should eq config.docker.remote_dir } context "docker" do subject { config.docker } its(:user) { should be } its(:password) { should be } its(:init) { should be } its(:image) { should be } its(:remote_dir) { should be } end context "local" do subject { config.local } its(:remote_dir){ should be } end context ".configure" do subject { Vx::Worker.configure do |c| c.run = "local" c.docker.image = 'image' end } its(:run) { should eq :local } its("docker.image") { should eq 'image' } end end
Version data entries
6 entries across 6 versions & 1 rubygems