Sha256: 792be9df4883741f2db48dc310cc26cbb88764426b423c64197c8ae490860fa6

Contents?: true

Size: 788 Bytes

Versions: 40

Compression:

Stored size: 788 Bytes

Contents

require "spec_helper"
require "foreman/engine"
require "foreman/export/launchd"
require "tmpdir"

describe Foreman::Export::Launchd, :fakefs do
  let(:procfile) { FileUtils.mkdir_p("/tmp/app"); write_procfile("/tmp/app/Procfile") }
  let(:options)  { Hash.new }
  let(:engine)   { Foreman::Engine.new().load_procfile(procfile) }
  let(:launchd)  { Foreman::Export::Launchd.new("/tmp/init", engine, options) }

  before(:each) { load_export_templates_into_fakefs("launchd") }
  before(:each) { stub(launchd).say }

  it "exports to the filesystem" do
    launchd.export
    File.read("/tmp/init/app-alpha-1.plist").should == example_export_file("launchd/launchd-a.default")
    File.read("/tmp/init/app-bravo-1.plist").should == example_export_file("launchd/launchd-b.default")
  end

end

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
foreman-capistrano-0.53.4 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.53.3 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.53.2 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.53.1 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.53.0 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.52.6 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.52.5 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.52.4 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.52.3 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.52.2 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.52.1 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.52.0 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.51.5 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.51.4 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.51.3 spec/foreman/export/launchd_spec.rb
foreman-0.57.0-java spec/foreman/export/launchd_spec.rb
foreman-0.57.0 spec/foreman/export/launchd_spec.rb
foreman-capistrano-0.51.2 spec/foreman/export/launchd_spec.rb
foreman-0.56.0 spec/foreman/export/launchd_spec.rb
foreman-0.55.0 spec/foreman/export/launchd_spec.rb