Sha256: 4160f77a52b6371b659ce881f9905fafb77e3194af958c2e514ffdab51ad6edc

Contents?: true

Size: 1.05 KB

Versions: 21

Compression:

Stored size: 1.05 KB

Contents

require 'spec_helper'

describe Evrone::CI::Worker::Configuration do
  let(:config) { Evrone::CI::Worker.config }
  subject { config }

  its(:run)             { should eq :docker     }
  its(:docker)          { should be             }
  its(:tmp_dir_name)    { should eq 'tmp'       }
  its(:timeout)         { should eq 1800        }
  its(:amqp_url)        { should be_nil         }

  context "docker" do
    subject { config.docker }

    its(:ssh)           { should be             }
    its(:remote_dir)    { should eq '/home/ci'  }
    its(:init)          { should be             }
    its(:image)         { should eq 'ci'        }
  end

  context "docker.ssh" do
    subject { config.docker.ssh }

    its(:user)          { should eq 'ci'        }
    its(:password)      { should eq 'ci'        }
  end

  context ".configure" do
    subject {
      Evrone::CI::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

21 entries across 21 versions & 1 rubygems

Version Path
evrone-ci-worker-0.2.0.pre26 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre25 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre24 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre23 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre22 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre21 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre20 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre19 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre18 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre17 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre15 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre14 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre13 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre12 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre11 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre10 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre9 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre8 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre7 spec/lib/worker/configuration_spec.rb
evrone-ci-worker-0.2.0.pre6 spec/lib/worker/configuration_spec.rb