test/controllers/tasks_controller_test.rb in shipit-engine-0.2.3 vs test/controllers/tasks_controller_test.rb in shipit-engine-0.3.0
- old
+ new
@@ -13,10 +13,10 @@
get :new, stack_id: @stack, definition_id: @definition.id
assert_response :ok
end
test "tasks defined in the shipit.yml can be triggered" do
- assert_difference '@stack.tasks.count', +1 do
+ assert_difference '@stack.tasks.count', 1 do
post :create, stack_id: @stack, definition_id: @definition.id
end
assert_redirected_to stack_task_path(@stack, Task.last)
end