Sha256: f5485c2bea720d9ede055c3067e2bf8b487003ca9af4f8a8b5d324dad355eb27
Contents?: true
Size: 831 Bytes
Versions: 3
Compression:
Stored size: 831 Bytes
Contents
require 'spec_helper' describe Cumuli::ProjectManager::Manager do let(:app_path) { File.dirname(__FILE__) + "/../fixtures/project_manager" } let(:loader) { Cumuli::ProjectManager::Manager.new(app_path) } let(:procfile_path) { "#{app_path}/Procfile" } let(:procfile_contents) { File.read(procfile_path) } describe "#publish" do before do File.delete(procfile_path) if File.exist?(procfile_path) end it "write a procfile with a line for every service or app" do loader.publish procfile_contents.lines.size.should == 5 end end describe "#projects" do it "is a collection of project objects, one for each entry in the yml" do loader.projects.size.should == 7 loader.projects.map{|a| a.class }.uniq.should == [Cumuli::ProjectManager::Project] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cumuli-0.5.0 | spec/project_manager/manager_spec.rb |
cumuli-0.4.1 | spec/project_manager/manager_spec.rb |
cumuli-0.4.0 | spec/project_manager/manager_spec.rb |