Sha256: 352075f8918585d8355a3fc37c4ccbdf0233547abe916620abe105d487ab2687

Contents?: true

Size: 923 Bytes

Versions: 10

Compression:

Stored size: 923 Bytes

Contents

require 'spec_helper'

describe DevFlow::RoadMap do
  describe "#parse" do
    context "valid file" do
      subject (:roadmap) do
        DevFlow::RoadMap.new('examples/ROADMAP', {}).parse
      end

      it "should be a Roadmap object" do
        roadmap.is_a?(DevFlow::RoadMap).should be_true
      end

      it "should assign parents well" do
        roadmap.ln_tasks[28].parent.is_a?(DevFlow::Task)
        roadmap.ln_tasks[28].level.should eq(2)
        roadmap.ln_tasks[28].parent.branch_name.should eq("scope")
        roadmap.ln_tasks[28].parent.level.should eq(1)
      end

      it "should assign dependencies well" do
        roadmap.ln_tasks[70].dependencies.size.should eq(2)
        roadmap.ln_tasks[70].dependencies[0].branch_name.should eq("release_api_design_0.1")
        roadmap.ln_tasks[70].dependencies[1].branch_name.should eq("model_spec")
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dev_flow-0.0.13 spec/roadmap_spec.rb
dev_flow-0.0.12 spec/roadmap_spec.rb
dev_flow-0.0.11 spec/roadmap_spec.rb
dev_flow-0.0.10 spec/roadmap_spec.rb
dev_flow-0.0.9 spec/roadmap_spec.rb
dev_flow-0.0.8 spec/roadmap_spec.rb
dev_flow-0.0.7 spec/roadmap_spec.rb
dev_flow-0.0.6 spec/roadmap_spec.rb
dev_flow-0.0.5 spec/roadmap_spec.rb
dev_flow-0.0.4 spec/roadmap_spec.rb