debian-mirror-gitlab/spec/support/shared_examples/models/cluster_application_initial_status_shared_examples.rb

14 lines
342 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
RSpec.shared_examples 'cluster application initial status specs' do
describe '#status' do
let(:cluster) { create(:cluster, :provided_by_gcp) }
subject { described_class.new(cluster: cluster) }
2020-10-24 23:57:45 +05:30
it 'sets a default status' do
expect(subject.status_name).to be(:installable)
2020-03-13 15:44:24 +05:30
end
end
end