Sha256: 2ccfc306a7615a2fdfaf197d8cbb0efa6394359ef898a75cfb018f11e8e24525

Contents?: true

Size: 619 Bytes

Versions: 5

Compression:

Stored size: 619 Bytes

Contents

require './lib/beanstalkify/deployment_info'
require './lib/beanstalkify/archive'

describe Beanstalkify::DeploymentInfo do
  before(:each) do
    environment = double(name: 'TestEnv', url: 'http://env.url')
    archive = Beanstalkify::Archive.new('test-website-1.0.1.zip')
    @info = Beanstalkify::DeploymentInfo.new(environment, archive)
  end
  
  it 'dumps useful info to a YAML string' do
    expected = {
      'app_name'    => 'test-website',
      'app_version' => '1.0.1',
      'env_name'    => 'TestEnv',
      'env_url'     => 'http://env.url'
    }
    @info.to_yaml.should == expected.to_yaml
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
beanstalkify-0.0.7 test/deployment_info_spec.rb
beanstalkify-0.0.6 test/deployment_info_spec.rb
beanstalkify-0.0.5 test/deployment_info_spec.rb
beanstalkify-0.0.4 test/deployment_info_spec.rb
beanstalkify-0.0.3 test/deployment_info_spec.rb