Skip to content

Commit

Permalink
update manage specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocksy committed Jun 10, 2016
1 parent fcef4ba commit 2772307
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions spec/lib/error_store/manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2772307

Please sign in to comment.