Sha256: 626d59fa6c222c46063b4313ee5fd5312147440f1c640bf179d75fabde968da7

Contents?: true

Size: 839 Bytes

Versions: 15

Compression:

Stored size: 839 Bytes

Contents

require 'spec_helper'
require 'albacore/solution'
require 'albacore/project'

describe Albacore::Solution, "when reading solution file" do
  def solution_path
    File.expand_path('../testdata/Project/Project.sln', __FILE__)
  end
  subject do
    Albacore::Solution.new solution_path
  end

  it "should contain Project path in project_paths" do
    expect(subject.project_paths).to include 'Project.fsproj'
  end

  it "should contain Project in projects" do
    project_path = File.expand_path('../testdata/Project/Project.fsproj', __FILE__)
    project = Albacore::Project.new project_path
    expect(subject.projects.map { |p| p.id }).to include project.id
  end

  describe 'public API' do
    it do
      expect(subject).to respond_to :projects
    end
    it do
      expect(subject).to respond_to :project_paths
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
albacore-3.0.1 spec/solution_spec.rb
albacore-3.0.0.pre.alpha.6 spec/solution_spec.rb
albacore-3.0.0.pre.alpha.5 spec/solution_spec.rb
albacore-3.0.0.pre.alpha.4 spec/solution_spec.rb
albacore-3.0.0.pre.alpha.3 spec/solution_spec.rb
albacore-3.0.0.pre.alpha.2 spec/solution_spec.rb
albacore-3.0.0.pre.alpha spec/solution_spec.rb
albacore-2.8.0 spec/solution_spec.rb
albacore-2.7.0 spec/solution_spec.rb
albacore-2.6.8 spec/solution_spec.rb
albacore-2.6.7 spec/solution_spec.rb
albacore-2.6.6 spec/solution_spec.rb
albacore-2.6.4 spec/solution_spec.rb
albacore-2.6.3 spec/solution_spec.rb
albacore-2.6.2 spec/solution_spec.rb