Sha256: ae0fb39f5fead70b15eff6e017d5c9c275f98a333abd898d99dec7641c944f1c
Contents?: true
Size: 821 Bytes
Versions: 2
Compression:
Stored size: 821 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' => 'rails', '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::Rails) end it "should include the server mixin" do subject.should be_kind_of(Servers::Thin) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
deployml-0.5.4 | spec/environment_spec.rb |
deployml-0.5.2 | spec/environment_spec.rb |