Fix tests
This commit is contained in:
@@ -21,7 +21,7 @@ class BucketsControllerTest < ActionDispatch::IntegrationTest
|
||||
end
|
||||
|
||||
bucket = Bucket.last
|
||||
assert_redirected_to bucket_bubbles_url(bucket)
|
||||
assert_redirected_to bubbles_path(bucket_ids: bucket.id)
|
||||
assert_includes bucket.users, users(:kevin)
|
||||
assert_equal "Remodel Punch List", bucket.name
|
||||
end
|
||||
@@ -34,7 +34,7 @@ class BucketsControllerTest < ActionDispatch::IntegrationTest
|
||||
test "update" do
|
||||
patch bucket_url(buckets(:writebook)), params: { bucket: { name: "Writebook bugs" }, user_ids: users(:david, :jz).pluck(:id) }
|
||||
|
||||
assert_redirected_to bucket_bubbles_url(buckets(:writebook))
|
||||
assert_redirected_to bubbles_path(bucket_ids: buckets(:writebook))
|
||||
assert_equal "Writebook bugs", buckets(:writebook).reload.name
|
||||
assert_equal users(:david, :jz), buckets(:writebook).users
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user