diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-11-03 13:05:42 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-11-03 13:05:42 +0300 |
commit | b78d8a748d3fd9a4922d35f380802852f3422e33 (patch) | |
tree | 72507b13e931e2ec54634ef9b9a4523fc8c08f45 /spec/migrations | |
parent | 694cfeb7b7288d7d27eca30f808fba421c1f1719 (diff) |
Fix spec failure. MySQL does not bite true
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/migrate_gcp_clusters_to_new_clusters_architectures_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/migrations/migrate_gcp_clusters_to_new_clusters_architectures_spec.rb b/spec/migrations/migrate_gcp_clusters_to_new_clusters_architectures_spec.rb index de9a42b46d8..7a38008902c 100644 --- a/spec/migrations/migrate_gcp_clusters_to_new_clusters_architectures_spec.rb +++ b/spec/migrations/migrate_gcp_clusters_to_new_clusters_architectures_spec.rb @@ -13,7 +13,7 @@ describe MigrateGcpClustersToNewClustersArchitectures, :migration do let(:gcp_cluster_size) { 1 } let(:created_at) { '2017-10-17 20:24:02.219679' } let(:updated_at) { '2017-10-17 20:28:44.738998' } - let(:enabled) { true } + let(:enabled) { 1 } # true let(:status_reason) { 'general error' } let(:project_namespace) { 'sample-app' } let(:endpoint) { '111.111.111.111' } @@ -50,7 +50,7 @@ describe MigrateGcpClustersToNewClustersArchitectures, :migration do expect(Clusters::Platforms::Kubernetes.count).to eq(1) expect(cluster.user).to eq(user) - expect(cluster.enabled).to eq(enabled) + expect(cluster.enabled).to be_truthy expect(cluster.name).to eq(gcp_cluster_name) expect(cluster.provider_type).to eq('gcp') expect(cluster.platform_type).to eq('kubernetes') |