diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-01-30 12:26:52 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-01-30 15:15:02 +0300 |
commit | be386cb2cf1853cb7658b6c17196965efc046fe9 (patch) | |
tree | f513d8a83f0a581a18afd160a5484782c62ea970 /spec/serializers/cluster_application_entity_spec.rb | |
parent | e4dc22e330388df385b64815f12d7c51dd97635f (diff) |
Expose app version to frontend
Diffstat (limited to 'spec/serializers/cluster_application_entity_spec.rb')
-rw-r--r-- | spec/serializers/cluster_application_entity_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/serializers/cluster_application_entity_spec.rb b/spec/serializers/cluster_application_entity_spec.rb index 852b6af9f7f..88d16a5b360 100644 --- a/spec/serializers/cluster_application_entity_spec.rb +++ b/spec/serializers/cluster_application_entity_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' describe ClusterApplicationEntity do describe '#as_json' do - let(:application) { build(:clusters_applications_helm) } + let(:application) { build(:clusters_applications_helm, version: '0.1.1') } subject { described_class.new(application).as_json } it 'has name' do @@ -13,6 +13,10 @@ describe ClusterApplicationEntity do expect(subject[:status]).to eq(:not_installable) end + it 'has version' do + expect(subject[:version]).to eq('0.1.1') + end + it 'has no status_reason' do expect(subject[:status_reason]).to be_nil end |