From 2772307c3fa83ec79e5defdcb16ec33d94330e14 Mon Sep 17 00:00:00 2001 From: Razvan Ciocanel Date: Fri, 10 Jun 2016 14:53:48 +0300 Subject: [PATCH] update manage specs --- spec/lib/error_store/manager_spec.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/spec/lib/error_store/manager_spec.rb b/spec/lib/error_store/manager_spec.rb index 40baa3f6..5233fd79 100644 --- a/spec/lib/error_store/manager_spec.rb +++ b/spec/lib/error_store/manager_spec.rb @@ -58,18 +58,26 @@ it 'returns last release' do post_manager.data.delete(:release) - error = post_manager.store_error + error = subject expect( error.group.release ).to eq(release) end it 'has no release' do post_manager.data.delete(:release) release.destroy - error = post_manager.store_error + error = subject expect( error.group.release ).to eq(nil) end + it 'saves grouped issue without release' do + post_manager.data.delete(:release) + release.destroy + expect { + subject + }.to change(GroupedIssue, :count).by(1) + end + it 'saves the provided checksum' do validated_post_data[:checksum] = 'sd' issue = subject