spec/pivotal-tracker/task_spec.rb in pivotal-tracker-0.5.3 vs spec/pivotal-tracker/task_spec.rb in pivotal-tracker-0.5.4
- old
+ new
@@ -16,6 +16,13 @@
context ".find" do
it "should return a given task" do
@story.tasks.find(468113).should be_a(PivotalTracker::Task)
end
end
+
+ context ".create" do
+ it "should return the created task" do
+ @story.tasks.create(:description => 'Test task')
+ end
+ end
+
end