Fix tests
This commit is contained in:
@@ -12,7 +12,5 @@ class Account < ApplicationRecord
|
||||
|
||||
Closure::Reason.create_defaults
|
||||
Collection.create!(name: "Cards", creator: user, all_access: true)
|
||||
workflow = Workflow.create!(name: "Basic")
|
||||
Collection.first.update!(workflow: workflow)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -16,7 +16,7 @@ class CollectionsControllerTest < ActionDispatch::IntegrationTest
|
||||
end
|
||||
|
||||
collection = Collection.last
|
||||
assert_redirected_to cards_path(collection_ids: [ collection ])
|
||||
assert_redirected_to collection_path(collection)
|
||||
assert_includes collection.users, users(:kevin)
|
||||
assert_equal "Remodel Punch List", collection.name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user