Skip to content

Instantly share code, notes, and snippets.

@Heavyblade
Created July 5, 2013 15:45
Show Gist options
  • Select an option

  • Save Heavyblade/5935409 to your computer and use it in GitHub Desktop.

Select an option

Save Heavyblade/5935409 to your computer and use it in GitHub Desktop.
it 'should take a step when told' do
@step.tasks.create(:title => 't1', :project_id => @project.id)
@step.tasks.create(:title => 't2', :project_id => @project.id)
@step.tasks.create(:title => 't3', :project_id => @project.id)
@step.tasks.count.should == 3
put @project.path(:task => @step.tasks[0]) + '/step.json', 'task[target]' => @project.steps[3]._id.to_s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment