Remove Array expectation in legacy Type spec

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/3194/head
Alex Coles 9 years ago
parent b6be1d560b
commit 3355458fc8
  1. 3
      spec/legacy/unit/type_spec.rb

@ -48,8 +48,7 @@ describe ::Type, type: :model do
Workflow.create!(role_id: 1, type_id: 1, old_status_id: 2, new_status_id: 3) Workflow.create!(role_id: 1, type_id: 1, old_status_id: 2, new_status_id: 3)
Workflow.create!(role_id: 2, type_id: 1, old_status_id: 3, new_status_id: 5) Workflow.create!(role_id: 2, type_id: 1, old_status_id: 3, new_status_id: 5)
assert_kind_of Array, type.statuses.all expect(type.statuses).to all be_kind_of Status
assert_kind_of Status, type.statuses.first
assert_equal [2, 3, 5], ::Type.find(1).statuses.map(&:id) assert_equal [2, 3, 5], ::Type.find(1).statuses.map(&:id)
end end

Loading…
Cancel
Save