Sha256: bb78d97286f303906e10208db5f9a6e82e6b3319cc588c0847826c0415eac523

Contents?: true

Size: 569 Bytes

Versions: 5

Compression:

Stored size: 569 Bytes

Contents

require 'spec_helper'

describe PivotalAngel::Project do

  let(:project) do
    PivotalTracker::Project.find(504031)
  end

  context ".deep_clone" do
    it "should clone the project including stories, tasks and notes" do
      PivotalAngel::Project.deep_clone(project, "clone of #{project.name}")

      sleep(10)
      clone_project = PivotalTracker::Project.all.find{ |i| i.name == "clone of #{project.name}" }
      clone_project.should_not be_nil
      project.stories.all.size == clone_project.stories.all.size

      # delete cloned project
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pivotal_angel-0.0.5 spec/pivotal_angel/project_spec.rb
pivotal_angel-0.0.4 spec/pivotal_angel/project_spec.rb
pivotal_angel-0.0.3 spec/pivotal_angel/project_spec.rb
pivotal_angel-0.0.2 spec/pivotal_angel/project_spec.rb
pivotal_angel-0.0.1 spec/pivotal_angel/project_spec.rb