Sha256: 7c3b1d4fee14467435158b3852fd780c9fbd50fe24e78659b5b8383e5a3e8cf3
Contents?: true
Size: 545 Bytes
Versions: 5
Compression:
Stored size: 545 Bytes
Contents
require "spec_helper" describe "formatter" do around :each do |example| example.run_with_retry retry: 10 end it "does not hide errors when formatting" do class MockFormatter include Pubnub::Event::EFormatter end class TestError < StandardError def message "This is a test" end end # ensure the correct error is raised instead of -> NoMethodError: undefined method `body' expect { MockFormatter.new.format_envelopes(TestError.new('error'), nil) }.to raise_error(TestError) end end
Version data entries
5 entries across 5 versions & 1 rubygems