diff options
Diffstat (limited to 'spec/migrations/migrate_auto_dev_ops_domain_to_cluster_domain_spec.rb')
-rw-r--r-- | spec/migrations/migrate_auto_dev_ops_domain_to_cluster_domain_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/migrations/migrate_auto_dev_ops_domain_to_cluster_domain_spec.rb b/spec/migrations/migrate_auto_dev_ops_domain_to_cluster_domain_spec.rb index 9188c19f76a..2fe6f3f62a9 100644 --- a/spec/migrations/migrate_auto_dev_ops_domain_to_cluster_domain_spec.rb +++ b/spec/migrations/migrate_auto_dev_ops_domain_to_cluster_domain_spec.rb @@ -89,11 +89,11 @@ describe MigrateAutoDevOpsDomainToClusterDomain do end def find_cluster_project(project_id) - cluster_projects_table.where(project_id: project_id).first + cluster_projects_table.find_by(project_id: project_id) end def find_cluster(cluster_id) - clusters_table.where(id: cluster_id).first + clusters_table.find_by(id: cluster_id) end def project_auto_devops_with_domain |