Initial commit
This commit is contained in:
15
spec/support/shared_examples_for_a_releasable.rb
Normal file
15
spec/support/shared_examples_for_a_releasable.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
shared_examples_for "a releasable" do
|
||||
it { is_expected.to respond_to(:contact_person) }
|
||||
it { is_expected.to respond_to(:release_number) }
|
||||
it { is_expected.to respond_to(:uses_edl?) }
|
||||
|
||||
describe "associations" do
|
||||
it { is_expected.to belong_to(:project).touch(true) }
|
||||
it { is_expected.to belong_to(:contract_template).optional }
|
||||
end
|
||||
|
||||
describe "#order_by_recent" do
|
||||
subject { described_class }
|
||||
it { is_expected.to respond_to(:order_by_recent) }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user