Remove tests which do not add value
This commit is contained in:
parent
42fe0cac09
commit
0dc1085074
|
@ -10,10 +10,6 @@ describe AnalyticsBuildSerializer do
|
||||||
let(:resource) { create(:ci_build) }
|
let(:resource) { create(:ci_build) }
|
||||||
|
|
||||||
context 'when there is a single object provided' do
|
context 'when there is a single object provided' do
|
||||||
it 'it generates payload for single object' do
|
|
||||||
expect(json).to be_an_instance_of Hash
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'contains important elements of analyticsBuild' do
|
it 'contains important elements of analyticsBuild' do
|
||||||
expect(json)
|
expect(json)
|
||||||
.to include(:name, :branch, :short_sha, :date, :total_time, :url, :author)
|
.to include(:name, :branch, :short_sha, :date, :total_time, :url, :author)
|
||||||
|
|
|
@ -22,10 +22,6 @@ describe AnalyticsIssueSerializer do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when there is a single object provided' do
|
context 'when there is a single object provided' do
|
||||||
it 'it generates payload for single object' do
|
|
||||||
expect(json).to be_an_instance_of Hash
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'contains important elements of the issue' do
|
it 'contains important elements of the issue' do
|
||||||
expect(json).to include(:title, :iid, :created_at, :total_time, :url, :author)
|
expect(json).to include(:title, :iid, :created_at, :total_time, :url, :author)
|
||||||
end
|
end
|
||||||
|
|
|
@ -23,10 +23,6 @@ describe AnalyticsMergeRequestSerializer do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when there is a single object provided' do
|
context 'when there is a single object provided' do
|
||||||
it 'it generates payload for single object' do
|
|
||||||
expect(json).to be_an_instance_of Hash
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'contains important elements of the merge request' do
|
it 'contains important elements of the merge request' do
|
||||||
expect(json).to include(:title, :iid, :created_at, :total_time, :url, :author, :state)
|
expect(json).to include(:title, :iid, :created_at, :total_time, :url, :author, :state)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue