spec/rest/alert_definitions_spec.rb in finapps-5.0.34 vs spec/rest/alert_definitions_spec.rb in finapps-5.0.35

- old
+ new

@@ -66,15 +66,11 @@ context 'when valid id is provided' do let(:id) { 'valid_id' } it { expect { show }.not_to raise_error } it('returns an array') { expect(show).to be_a(Array) } - - it('performs a get and returns the response') do - expect(results).to have_key(:_id) - expect(results).to have_key(:rule_name) - end - + it { expect(results).to have_key(:_id) } + it { expect(results).to have_key(:rule_name) } it('returns no error messages') { expect(errors).to be_empty } end context 'when invalid id is provided' do let(:id) { 'invalid_id' }