Sha256: 1b842cac426e9faee70dfef039e570be26a9564b9b8666a0da87f3b7c69bdf7b

Contents?: true

Size: 823 Bytes

Versions: 6

Compression:

Stored size: 823 Bytes

Contents

require 'spec_helper'

require 'deployml/project'

describe Environment do
  let(:name) { :staging }
  subject do
    Environment.new(name, {
      'source' => 'git@github.com:user/project.git',
      'dest' => 'ssh://user@www.example.com/srv/project',
      'framework' => 'rails3',
      'orm' => 'datamapper',
      'server' => {
        'name' => 'thin',
        'options' => {
          'config' => '/etc/thin/project.yml',
          'socket' => '/tmp/thin.project.sock'
        }
      }
    })
  end

  it "should default 'environment' to the name of the environment" do
    subject.environment.should == name
  end

  it "should include the framework mixin" do
    subject.should be_kind_of(Frameworks::Rails3)
  end

  it "should include the server mixin" do
    subject.should be_kind_of(Servers::Thin)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
deployml-0.5.1 spec/environment_spec.rb
deployml-0.5.0 spec/environment_spec.rb
deployml-0.4.2 spec/environment_spec.rb
deployml-0.4.1 spec/environment_spec.rb
deployml-0.4.0 spec/environment_spec.rb
deployml-0.3.0 spec/environment_spec.rb