Sha256: dcc29620858603e405506fff4391f7b4325e898c264d35df98f0dae252e99e25
Contents?: true
Size: 972 Bytes
Versions: 36
Compression:
Stored size: 972 Bytes
Contents
require 'spec_helper' require 'rollbar/rake' describe Rollbar::Rake do let(:application) { Rake::Application.new } let(:exception) { Exception.new } context 'with supported rake version' do before do allow(Rollbar::Rake).to receive(:rake_version).and_return('0.9.0') end it 'reports error to Rollbar' do expect(Rollbar::Rake).not_to receive(:skip_patch) expect(Rollbar).to receive(:error).with(exception, :use_exception_level_filters => true) expect(application).to receive(:orig_display_error_message).with(exception) Rollbar::Rake.patch! # Really here Rake is already patched application.display_error_message(exception) end end context 'with unsupported rake version' do before do allow(Rollbar::Rake).to receive(:rake_version).and_return('0.8.7') end it 'reports error to Rollbar' do expect(Rollbar::Rake).to receive(:skip_patch) Rollbar::Rake.patch! end end end
Version data entries
36 entries across 36 versions & 1 rubygems