Sha256: e6c7b23bd17184cdaa4c719a9ccf578780923f1d45510d801369521ef685847c
Contents?: true
Size: 944 Bytes
Versions: 16
Compression:
Stored size: 944 Bytes
Contents
require 'spec_helper' describe Appsignal::Middleware::DeleteBlanks do let(:klass) { Appsignal::Middleware::DeleteBlanks } let(:delete_blanks) { klass.new } describe "#call" do let(:event) do notification_event( :name => 'something', :payload => create_payload(payload) ) end let(:payload) do { :string => 'not empty', :array => ['something'], :hash => {'something' => 'something'}, :empty_string => '', :empty_array => [], :empty_hash => {}, :nil => nil } end subject { event.payload } before { delete_blanks.call(event) { } } it { should have_key(:string) } it { should have_key(:array) } it { should have_key(:hash) } it { should_not have_key(:empty_string) } it { should_not have_key(:empty_array) } it { should_not have_key(:empty_hash) } it { should_not have_key(:nil) } end end
Version data entries
16 entries across 16 versions & 1 rubygems